1
0
Fork 0
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:
Nick Peskett 2012-02-09 10:59:25 +00:00
parent ae7b59634c
commit 4d72c1b0b4

View file

@ -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