Commit d86d65f6 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

esp8266/scripts: Move all of initial setup to inisetup module.

parent adae53d5
......@@ -7,8 +7,4 @@ try:
vfs = uos.VfsFat(bdev, "")
except OSError:
import inisetup
inisetup.check_bootsec()
print("Performing initial setup")
uos.VfsFat.mkfs(bdev)
vfs = uos.VfsFat(bdev, "")
inisetup.wifi()
vfs = inisetup.setup()
......@@ -30,3 +30,11 @@ factory reprogramming of MicroPython firmware (completely erase flash, followed
by firmware programming).
""")
time.sleep(3)
def setup():
check_bootsec()
print("Performing initial setup")
wifi()
uos.VfsFat.mkfs(bdev)
vfs = uos.VfsFat(bdev, "")
return vfs
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