forked from len0rd/rockbox
Fix sim battery emulation: Set such a low sample value for battery smoothing as to effectively disable it.
Since smoothing was enabled for battery_status_update() in 109084d, the simulated charge/ discharge cycle was so fast that the battery level never really dropped much below 90%.
Change-Id: Ide5c7ceef97bc9ed62d45e3a0afd99ff6f0550ea
This commit is contained in:
parent
ae7b59634c
commit
4d72c1b0b4
1 changed files with 7 additions and 0 deletions
|
|
@ -42,6 +42,13 @@
|
|||
#define CONFIG_CHARGING CHARGING_MONITOR
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Effectively disable battery smoothing, our simulated charge/ discharge
|
||||
* cycle is way too fast for it otherwise
|
||||
*/
|
||||
#undef BATT_AVE_SAMPLES
|
||||
#define BATT_AVE_SAMPLES 1
|
||||
|
||||
#undef CONFIG_USBOTG
|
||||
|
||||
#undef USB_HANDLED_BY_OF
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue