altoslib: Fix available flight log storage computation
authorKeith Packard <keithp@keithp.com>
Sun, 10 Feb 2013 22:40:48 +0000 (14:40 -0800)
committerKeith Packard <keithp@keithp.com>
Sun, 10 Feb 2013 22:40:48 +0000 (14:40 -0800)
commita9cf50c9f29f42cc3ca0daff3c69a4087cf9aa1c
tree0047e2eba5aaeaa9e27ab68d2bd6717c284102ba
parent504cf412e8b60b5ff2dea93ed3336f0e058dea62
altoslib: Fix available flight log storage computation

number of flights was off by one as it was initialized to -1
storage erase unit wasn't getting fetched correctly
flight_log_max is in kB, not B; need to multiply by 1024

Signed-off-by: Keith Packard <keithp@keithp.com>
altoslib/AltosConfigData.java