diff options
Diffstat (limited to 'apps/settings.c')
-rw-r--r-- | apps/settings.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/settings.c b/apps/settings.c index de4254edad..e16d546bb6 100644 --- a/apps/settings.c +++ b/apps/settings.c | |||
@@ -235,6 +235,10 @@ static const struct bit_entry rtc_bits[] = | |||
235 | /* new stuff to be added here */ | 235 | /* new stuff to be added here */ |
236 | /* If values are just added to the end, no need to bump the version. */ | 236 | /* If values are just added to the end, no need to bump the version. */ |
237 | 237 | ||
238 | #if BATTERY_TYPES_COUNT > 1 | ||
239 | {1, S_O(battery_type), 0, "battery type", "alkaline,nimh" }, | ||
240 | #endif | ||
241 | |||
238 | /* Current sum of bits: 259 (worst case) */ | 242 | /* Current sum of bits: 259 (worst case) */ |
239 | /* Sum of all bit sizes must not grow beyond 288! */ | 243 | /* Sum of all bit sizes must not grow beyond 288! */ |
240 | }; | 244 | }; |
@@ -759,6 +763,9 @@ void settings_apply(void) | |||
759 | #endif | 763 | #endif |
760 | 764 | ||
761 | set_battery_capacity(global_settings.battery_capacity); | 765 | set_battery_capacity(global_settings.battery_capacity); |
766 | #if BATTERY_TYPES_COUNT > 1 | ||
767 | set_battery_type(global_settings.battery_type); | ||
768 | #endif | ||
762 | 769 | ||
763 | #ifdef HAVE_LCD_BITMAP | 770 | #ifdef HAVE_LCD_BITMAP |
764 | lcd_set_invert_display(global_settings.invert); | 771 | lcd_set_invert_display(global_settings.invert); |