aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien George2021-02-09 10:42:19 +1100
committerDamien George2021-02-09 10:46:07 +1100
commitc7aaee2b2ba0cb19d3b3deb6092e0bfe55d79052 (patch)
tree3d3ef8228c6c182d4f30f5c5102d2b66fd048632
parent0a59938574502b19b3d685133084399c090d3c11 (diff)
esp8266/modules: Fix fs_corrupted() to use start_sec not START_SEC.
START_SEC was changed in e0905e85a7ad2961aa9192f6130565860e531ad3. 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>
-rw-r--r--ports/esp8266/modules/inisetup.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/ports/esp8266/modules/inisetup.py b/ports/esp8266/modules/inisetup.py
index e711a57d4..9500b8048 100644
--- a/ports/esp8266/modules/inisetup.py
+++ b/ports/esp8266/modules/inisetup.py
@@ -30,13 +30,12 @@ def fs_corrupted():
while 1:
print(
"""\
-The filesystem starting at sector %d with size %d sectors appears to
-be corrupted. If you had important data there, you may want to make a flash
-snapshot to try to recover it. Otherwise, perform factory reprogramming
-of MicroPython firmware (completely erase flash, followed by firmware
-programming).
+The filesystem starting at sector %d with size %d sectors looks corrupt.
+You may want to make a flash snapshot and try to recover it. Otherwise,
+format it with uos.VfsLfs2.mkfs(bdev), or completely erase the flash and
+reprogram MicroPython.
"""
- % (bdev.START_SEC, bdev.blocks)
+ % (bdev.start_sec, bdev.blocks)
)
time.sleep(3)