mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 21:22:39 -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
|
|
@ -144,7 +144,7 @@ bool dbg_ports(void)
|
|||
|
||||
adc_buttons = adc_read(ADC_BUTTONS);
|
||||
adc_remote = adc_read(ADC_REMOTE);
|
||||
|
||||
battery_read_info(&adc_battery_voltage, &adc_battery_level);
|
||||
#if defined(IAUDIO_X5) || defined(IAUDIO_M5) || defined(IRIVER_H300_SERIES)
|
||||
lcd_putsf(0, line++, "ADC_BUTTONS (%c): %02x",
|
||||
button_scan_enabled() ? '+' : '-', adc_buttons);
|
||||
|
|
@ -162,8 +162,7 @@ bool dbg_ports(void)
|
|||
adc_read(ADC_REMOTEDETECT));
|
||||
#endif
|
||||
|
||||
adc_battery_voltage = _battery_voltage();
|
||||
adc_battery_level = battery_level();
|
||||
battery_read_info(&adc_battery_voltage, &adc_battery_level);
|
||||
lcd_putsf(0, line++, "Batt: %d.%03dV %d%% ", adc_battery_voltage / 1000,
|
||||
adc_battery_voltage % 1000, adc_battery_level);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue