diff options
Diffstat (limited to 'apps/settings_menu.c')
-rw-r--r-- | apps/settings_menu.c | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/apps/settings_menu.c b/apps/settings_menu.c index 57df93786c..c33b26b07d 100644 --- a/apps/settings_menu.c +++ b/apps/settings_menu.c | |||
@@ -428,6 +428,26 @@ static bool bidir_limit(void) | |||
428 | } | 428 | } |
429 | #endif | 429 | #endif |
430 | 430 | ||
431 | /** | ||
432 | * Menu to set the battery capacity | ||
433 | */ | ||
434 | static bool battery_capacity(void) { | ||
435 | bool retval = false; | ||
436 | |||
437 | char* names[] = { "1500 mAh ", "1600 mAh ", | ||
438 | "1700 mAh ", "1800 mAh ", | ||
439 | "1900 mAh ", "2000 mAh ", | ||
440 | "2100 mAh ", "2200 mAh " | ||
441 | }; | ||
442 | |||
443 | retval = set_option( str(LANG_BATTERY_CAPACITY), | ||
444 | &global_settings.battery_capacity, names, 8, NULL); | ||
445 | |||
446 | set_battery_capacity(global_settings.battery_capacity); | ||
447 | |||
448 | return retval; | ||
449 | } | ||
450 | |||
431 | #ifdef HAVE_CHARGE_CTRL | 451 | #ifdef HAVE_CHARGE_CTRL |
432 | static bool deep_discharge(void) | 452 | static bool deep_discharge(void) |
433 | { | 453 | { |
@@ -720,9 +740,10 @@ static bool system_settings_menu(void) | |||
720 | #ifdef HAVE_ATA_POWER_OFF | 740 | #ifdef HAVE_ATA_POWER_OFF |
721 | { str(LANG_POWEROFF), poweroff }, | 741 | { str(LANG_POWEROFF), poweroff }, |
722 | #endif | 742 | #endif |
743 | { str(LANG_BATTERY_CAPACITY), battery_capacity }, | ||
723 | #ifdef HAVE_CHARGE_CTRL | 744 | #ifdef HAVE_CHARGE_CTRL |
724 | { str(LANG_DISCHARGE), deep_discharge }, | 745 | { str(LANG_DISCHARGE), deep_discharge }, |
725 | { str(LANG_TRICKLE_CHARGE), trickle_charge }, | 746 | { str(LANG_TRICKLE_CHARGE), trickle_charge }, |
726 | #endif | 747 | #endif |
727 | #ifdef HAVE_LCD_BITMAP | 748 | #ifdef HAVE_LCD_BITMAP |
728 | { str(LANG_TIME), timedate_set }, | 749 | { str(LANG_TIME), timedate_set }, |