esp8266/modules: Fix fs_corrupted() to use start_sec not START_SEC.

START_SEC was changed in e0905e85a7.

Also, update the error message to mention how to format the partition at
the REPL, and make the total message shorter to save a bit of flash.

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George 2021-02-09 10:42:19 +11:00
parent 0a59938574
commit c7aaee2b2b

View File

@ -30,13 +30,12 @@ def fs_corrupted():
while 1: while 1:
print( print(
"""\ """\
The filesystem starting at sector %d with size %d sectors appears to The filesystem starting at sector %d with size %d sectors looks corrupt.
be corrupted. If you had important data there, you may want to make a flash You may want to make a flash snapshot and try to recover it. Otherwise,
snapshot to try to recover it. Otherwise, perform factory reprogramming format it with uos.VfsLfs2.mkfs(bdev), or completely erase the flash and
of MicroPython firmware (completely erase flash, followed by firmware reprogram MicroPython.
programming).
""" """
% (bdev.START_SEC, bdev.blocks) % (bdev.start_sec, bdev.blocks)
) )
time.sleep(3) time.sleep(3)