Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
49ac968b
Commit
49ac968b
authored
Jul 27, 2019
by
Nathaniel Wesley Filardo
Committed by
Marcel Stör
Jul 27, 2019
Browse files
Lost fixes to nodemcu-partition.py (#2861)
parent
7d387dd4
Changes
1
Hide whitespace changes
Inline
Side-by-side
tools/nodemcu-partition.py
View file @
49ac968b
...
@@ -126,7 +126,7 @@ def load_PT(data, args):
...
@@ -126,7 +126,7 @@ def load_PT(data, args):
"""
"""
PTrec
,
recs
=
unpack_RCR
(
data
)
PTrec
,
recs
=
unpack_RCR
(
data
)
flash_size
=
fs
.
args
if
args
.
fs
is
not
None
else
DEFAULT_FLASH_SIZE
flash_size
=
arg
s
.
f
s
if
args
.
fs
is
not
None
else
DEFAULT_FLASH_SIZE
# The partition table format is a set of 3*uint32 fields (type, addr, size),
# The partition table format is a set of 3*uint32 fields (type, addr, size),
# with the optional last slot being an end marker (0,size,0) where size is
# with the optional last slot being an end marker (0,size,0) where size is
...
@@ -367,7 +367,7 @@ def main():
...
@@ -367,7 +367,7 @@ def main():
# ---------- Write to a temp file and use esptool to write it to flash ---------- #
# ---------- Write to a temp file and use esptool to write it to flash ---------- #
spiffs_file
=
arg
.
sf
spiffs_file
=
arg
.
sf
espargs
=
base
+
[
''
,
str
(
sa
),
spiffs_file
]
espargs
=
base
+
[
'
write_flash
'
,
str
(
sa
),
spiffs_file
]
esptool
.
main
(
espargs
)
esptool
.
main
(
espargs
)
# ---------- Clean up temp directory ---------- #
# ---------- Clean up temp directory ---------- #
...
...
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