diff options
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/powermgmt.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/firmware/powermgmt.c b/firmware/powermgmt.c index 7e1523eb57..aaec959f50 100644 --- a/firmware/powermgmt.c +++ b/firmware/powermgmt.c @@ -197,12 +197,15 @@ int battery_time(void) #ifndef CURRENT_NORMAL /* no estimation without current */ return -1; -#endif +#else if (battery_capacity <= 0) /* nor without capacity */ return -1; - + return _battery_time(); #endif + +#else return _battery_time(); +#endif } /* Returns battery level in percent */ |