mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
hosted: Consolidate the code that polls the battery charging status
affects all hiby targets, fiiom3k, and ibasso dx50/dx90 As well as deduplicating a small pile of code, this also implements hysteresis so we're not doing a sysfs read/lookup multiple times back-to-back every time the power management tick fires. Change-Id: I2f7672acbb36341becf67e07960c24c681270d09
This commit is contained in:
parent
b3b8310e4e
commit
555299af9f
19 changed files with 80 additions and 187 deletions
|
@ -127,6 +127,7 @@ target/hosted/sysfs.c
|
|||
target/hosted/backlight-unix.c
|
||||
target/hosted/system-hosted.c
|
||||
target/hosted/lcd-linuxfb.c
|
||||
target/hosted/power-linux.c
|
||||
#endif
|
||||
|
||||
#if defined(AGPTEK_ROCKER) && !defined(SIMULATOR)
|
||||
|
@ -1919,6 +1920,7 @@ target/hosted/lc-unix.c
|
|||
target/hosted/ibasso/audiohw-ibasso.c
|
||||
target/hosted/ibasso/backlight-ibasso.c
|
||||
target/hosted/ibasso/button-ibasso.c
|
||||
target/hosted/power-linux.c
|
||||
#ifdef DEBUG
|
||||
target/hosted/ibasso/debug-ibasso.c
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue