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; - -#endif return _battery_time(); +#endif + +#else + return _battery_time(); +#endif } /* Returns battery level in percent */