mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -05:00
powermgmt: Remove an unnecessary function
Remove battery_read_info() which is a simple wrapper function only used by debug screens. Use the polling functions directly to save a bit of code size. Change-Id: I2919f78105bab186f6933dc1823f9fa67fe74f3e
This commit is contained in:
parent
d93a3cac50
commit
6ff1a935b9
4 changed files with 9 additions and 27 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,7 +162,8 @@ bool dbg_ports(void)
|
|||
adc_read(ADC_REMOTEDETECT));
|
||||
#endif
|
||||
|
||||
battery_read_info(&adc_battery_voltage, &adc_battery_level);
|
||||
adc_battery_voltage = _battery_voltage();
|
||||
adc_battery_level = 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