Skip to content

Commit

Permalink
Lost fixes to nodemcu-partition.py (#2861)
Browse files Browse the repository at this point in the history
  • Loading branch information
nwf authored and marcelstoer committed Jul 27, 2019
1 parent 7d387dd commit 49ac968
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/nodemcu-partition.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def load_PT(data, args):
"""

PTrec,recs = unpack_RCR(data)
flash_size = fs.args if args.fs is not None else DEFAULT_FLASH_SIZE
flash_size = args.fs if args.fs is not None else DEFAULT_FLASH_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
Expand Down Expand Up @@ -367,7 +367,7 @@ def arg_auto_int(x):
# ---------- Write to a temp file and use esptool to write it to flash ---------- #

spiffs_file = arg.sf
espargs = base + ['', str(sa), spiffs_file]
espargs = base + ['write_flash', str(sa), spiffs_file]
esptool.main(espargs)

# ---------- Clean up temp directory ---------- #
Expand Down

0 comments on commit 49ac968

Please sign in to comment.