summaryrefslogtreecommitdiffstatshomepage
path: root/esp8266/scripts/_boot.py
diff options
context:
space:
mode:
Diffstat (limited to 'esp8266/scripts/_boot.py')
-rw-r--r--esp8266/scripts/_boot.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/esp8266/scripts/_boot.py b/esp8266/scripts/_boot.py
index 2b261fb475..7e38f03236 100644
--- a/esp8266/scripts/_boot.py
+++ b/esp8266/scripts/_boot.py
@@ -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()