Changeset 2705


Ignore:
Timestamp:
Nov 28, 2011, 1:05:38 AM (4 years ago)
Author:
quozl
Message:

OLPC - avoid a gap in the reflash progress display, and show one more dot after the verify pass.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • dev/olpc/spiflash/spiui.fth

    r2703 r2705  
    1010
    1111defer spi-progress  ' drop to spi-progress  ( n -- )
     12
     13: .progress  ( offset -- )
     14   5 rshift  dup spi-progress  h# 400 + spi-progress
     15;
    1216
    1317: write-flash-range  ( adr end-offset start-offset -- )
     
    2731         dup  /flash-block  i  flash-write  ( adr )
    2832      then
    29       i 5 rshift dup spi-progress h# 400 + spi-progress ( adr )
     33      i .progress                          ( adr )
    3034      /flash-block +                        ( adr' )
    3135   /flash-block +loop                       ( adr )
     
    187191
    188192   \ Don't write the block containing the manufacturing data
     193   mfg-data-offset .progress
    189194
    190195   flash-buf mfg-data-end-offset +   /flash  mfg-data-end-offset  write-flash-range  \ Write last part
     
    211216         verify-firmware
    212217      then
     218      /flash .progress
    213219      flash-write-disable
    214220   else
Note: See TracChangeset for help on using the changeset viewer.