Clear up FS menus

Heise.de seems to have been confused by the menu options for the
filesystem/sketch selection.  Explicitly list the Sketch and FS sizes in
each menu tem to avoid future confusion.
parent a536d9ce
This diff is collapsed.
...@@ -5,9 +5,9 @@ def BuildFlashMenu(name, flashsize, fssizelist): ...@@ -5,9 +5,9 @@ def BuildFlashMenu(name, flashsize, fssizelist):
if fssize == 0: if fssize == 0:
fssizename = "no FS" fssizename = "no FS"
elif fssize < 1024 * 1024: elif fssize < 1024 * 1024:
fssizename = "FS: %dKB" % (fssize / 1024) fssizename = "Sketch: %dKB, FS: %dKB" % ((flashsize - fssize) / 1024, fssize / 1024)
else: else:
fssizename = "FS: %dMB" % (fssize / (1024 * 1024)) fssizename = "Sketch: %dMB, FS: %dMB" % ((flashsize - fssize) / (1024 * 1024), fssize / (1024 * 1024))
mn="%d_%d" % (flashsize, fssize) mn="%d_%d" % (flashsize, fssize)
print("%s.menu.flash.%s=%dMB (%s)" % (name, mn, flashsize / (1024 * 1024), fssizename)) print("%s.menu.flash.%s=%dMB (%s)" % (name, mn, flashsize / (1024 * 1024), fssizename))
print("%s.menu.flash.%s.upload.maximum_size=%d" % (name, mn, flashsize - 4096 - fssize)) print("%s.menu.flash.%s.upload.maximum_size=%d" % (name, mn, flashsize - 4096 - fssize))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment