- flight_log_max_value.removeAllItems();
- for (int i = 8; i >= 1; i--) {
- int size = flight_log_max_limit / i;
- flight_log_max_value.addItem(String.format("%d (%d flights)", size, i));
+ if (new_flight_log_max_limit != AltosLib.MISSING) {
+ flight_log_max_value.removeAllItems();
+ for (int i = 8; i >= 1; i--) {
+ int size = flight_log_max_limit / i;
+ if (new_storage_erase_unit != 0)
+ size &= ~(new_storage_erase_unit - 1);
+ flight_log_max_value.addItem(String.format("%d (%d flights)", size, i));
+ }