Commit 8dcce926 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

esp8266/scripts: Don't try to create filesystem on 512KB devices or less.

There's no space for it.
parent 89e56a80
......@@ -3,7 +3,8 @@ import builtins
from flashbdev import bdev
try:
vfs = uos.VfsFat(bdev, "")
if bdev:
vfs = uos.VfsFat(bdev, "")
except OSError:
import inisetup
inisetup.check_bootsec()
......
......@@ -26,4 +26,7 @@ class FlashBdev:
if op == 5: # BP_IOCTL_SEC_SIZE
return self.SEC_SIZE
bdev = FlashBdev()
if esp.flash_size() < 1024*1024:
bdev = None
else:
bdev = FlashBdev()
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment