Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
micropython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
micropython
Commits
eea58486
Commit
eea58486
authored
May 26, 2017
by
Damien George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
esp8266/modules: Mount filesystem at root when creating for first time.
parent
e26fb3ad
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
esp8266/modules/_boot.py
esp8266/modules/_boot.py
+1
-1
esp8266/modules/inisetup.py
esp8266/modules/inisetup.py
+1
-2
No files found.
esp8266/modules/_boot.py
View file @
eea58486
...
...
@@ -8,6 +8,6 @@ try:
uos
.
mount
(
bdev
,
'/'
)
except
OSError
:
import
inisetup
vfs
=
inisetup
.
setup
()
inisetup
.
setup
()
gc
.
collect
()
esp8266/modules/inisetup.py
View file @
eea58486
...
...
@@ -38,8 +38,7 @@ def setup():
wifi
()
uos
.
VfsFat
.
mkfs
(
bdev
)
vfs
=
uos
.
VfsFat
(
bdev
)
uos
.
mount
(
vfs
,
'/flash'
)
uos
.
chdir
(
'/flash'
)
uos
.
mount
(
vfs
,
'/'
)
with
open
(
"boot.py"
,
"w"
)
as
f
:
f
.
write
(
"""
\
# This file is executed on every boot (including wake-boot from deepsleep)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment