From f20591a82e19783c7d9493a90ee77efbbd0475c7 Mon Sep 17 00:00:00 2001 From: Nathaniel Wesley Filardo Date: Mon, 1 Jun 2020 14:04:17 +0100 Subject: [PATCH] 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 9ef5c7dbea86d242c030cc47e804a07f2632b0a1) --- tools/nodemcu-partition.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/nodemcu-partition.py b/tools/nodemcu-partition.py index 8b0d0a46..49c512be 100755 --- a/tools/nodemcu-partition.py +++ b/tools/nodemcu-partition.py @@ -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