Lost fix to nodemcu-partition.py (take 2) (#3139)

Replay a line from https://github.com/nodemcu/nodemcu-firmware/pull/2861
after accidental revert in
https://github.com/nodemcu/nodemcu-firmware/pull/3075 (specifically
9ef5c7dbea)
This commit is contained in:
Nathaniel Wesley Filardo 2020-06-01 14:04:17 +01:00 committed by Marcel Stör
parent 7c53cc7611
commit f20591a82e
1 changed files with 1 additions and 1 deletions

View File

@ -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