Skip to content

Commit

Permalink
rg_tool: Fixed args.fatsize used instead of fatsize
Browse files Browse the repository at this point in the history
  • Loading branch information
ducalex committed Jul 29, 2024
1 parent 7ceefba commit bcebe67
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rg_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ def build_image(apps, device_type, img_format="esp32", fatsize=0):
image_data += data + b"\xFF" * (part_size - len(data))

if fatsize:
table_csv.append("vfs, data, fat, , " + args.fatsize + ","); # Use "vfs" label, same as MicroPython, in case the storage is to be shared with a MicroPython install
# Use "vfs" label, same as MicroPython, in case the storage is to be shared with a MicroPython install
table_csv.append("vfs, data, fat, %d, %d" % (len(image_data), fatsize))

print("Generating partition table...")
with open("partitions.csv", "w") as f:
Expand Down

0 comments on commit bcebe67

Please sign in to comment.