mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -05:00
Revert "powermgmt: Remove an unnecessary function"
This reverts commit 6ff1a935b9.
Reason: it created a mismatch between the displayed voltage
and percent since the voltage was unfiltered but percentage
was based off the filtered voltage.
Change-Id: I4cba099f2e1edf0ef7c4e17a32f566aa66f5b933
This commit is contained in:
parent
1a313dc9bf
commit
22d0c4da70
4 changed files with 29 additions and 9 deletions
|
|
@ -143,6 +143,10 @@ unsigned int input_millivolts(void); /* voltage that device is running from */
|
|||
void reset_battery_filter(int millivolts);
|
||||
#endif /* HAVE_BATTERY_SWITCH || HAVE_RESET_BATTERY_FILTER */
|
||||
|
||||
|
||||
/* read unfiltered battery info */
|
||||
void battery_read_info(int *voltage, int *level);
|
||||
|
||||
/* Tells if the battery level is safe for disk writes */
|
||||
bool battery_level_safe(void);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue