Commit 347afa14 authored by Projects's avatar Projects

Fix charging indicator.

parent 9832038c
...@@ -243,7 +243,7 @@ uint16_t max17047_get_time_left(void); ...@@ -243,7 +243,7 @@ uint16_t max17047_get_time_left(void);
*/ */
static inline bool max17047_is_charging(void) static inline bool max17047_is_charging(void)
{ {
return (max17047_get_current() > 0); return (max17047_get_current() >= 0);
} }
#endif /*__MAX17047_H_ */ #endif /*__MAX17047_H_ */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment