diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/settings.c | 6 | ||||
-rw-r--r-- | apps/status.c | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/apps/settings.c b/apps/settings.c index 10333b15c1..bd7ce4329e 100644 --- a/apps/settings.c +++ b/apps/settings.c | |||
@@ -213,10 +213,12 @@ static const struct bit_entry rtc_bits[] = | |||
213 | {1, S_O(discharge), 0, "deep discharge", off_on }, | 213 | {1, S_O(discharge), 0, "deep discharge", off_on }, |
214 | {1, S_O(trickle_charge), true, "trickle charge", off_on }, | 214 | {1, S_O(trickle_charge), true, "trickle charge", off_on }, |
215 | #endif | 215 | #endif |
216 | #ifdef HAVE_LIION | 216 | #if CONFIG_BATTERY == BATT_LIION2200 |
217 | {12, S_O(battery_capacity), 2200, "battery capacity", NULL }, /* 1500...3200 */ | 217 | {12, S_O(battery_capacity), 2200, "battery capacity", NULL }, /* 1500...3200 */ |
218 | #else | 218 | #elif CONFIG_BATTERY == BATT_4AA_NIMH |
219 | {12, S_O(battery_capacity), 1500, "battery capacity", NULL }, /* 1500...3200 */ | 219 | {12, S_O(battery_capacity), 1500, "battery capacity", NULL }, /* 1500...3200 */ |
220 | #elif CONFIG_BATTERY == BATT_3AAA_ALKALINE | ||
221 | {12, S_O(battery_capacity), 1000, "battery capacity", NULL }, | ||
220 | #endif | 222 | #endif |
221 | {1, S_O(car_adapter_mode), false, "car adapter mode", off_on }, | 223 | {1, S_O(car_adapter_mode), false, "car adapter mode", off_on }, |
222 | 224 | ||
diff --git a/apps/status.c b/apps/status.c index 84a3f8d6c2..248f9b9e1f 100644 --- a/apps/status.c +++ b/apps/status.c | |||
@@ -172,7 +172,7 @@ void status_draw(bool force_redraw) | |||
172 | if (info.inserted) { | 172 | if (info.inserted) { |
173 | battery_state = true; | 173 | battery_state = true; |
174 | plug_state = true; | 174 | plug_state = true; |
175 | #if defined(HAVE_CHARGE_CTRL) || defined(HAVE_LIION) | 175 | #if defined(HAVE_CHARGE_CTRL) || CONFIG_BATTERY == BATT_LIION2200 |
176 | /* zero battery run time if charging */ | 176 | /* zero battery run time if charging */ |
177 | if (charge_state > 0) { | 177 | if (charge_state > 0) { |
178 | global_settings.runtime = 0; | 178 | global_settings.runtime = 0; |