diff options
| author | Nick Peskett <rockbox@peskett.co.uk> | 2012-02-09 10:59:25 +0000 |
|---|---|---|
| committer | Nick Peskett <rockbox@peskett.co.uk> | 2012-02-09 10:59:25 +0000 |
| commit | 4d72c1b0b4155e58ab89a5452f10b722002c1055 (patch) | |
| tree | a93ed2a902dd64adfcdbfe32860e074ff054353c | |
| parent | ae7b59634c82646b5ff3c92a9380f0ddad948d24 (diff) | |
| download | rockbox-4d72c1b0b4155e58ab89a5452f10b722002c1055.zip rockbox-4d72c1b0b4155e58ab89a5452f10b722002c1055.tar.gz rockbox-4d72c1b0b4155e58ab89a5452f10b722002c1055.tar.bz2 rockbox-4d72c1b0b4155e58ab89a5452f10b722002c1055.tar.xz | |
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
| -rw-r--r-- | firmware/export/config/sim.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/firmware/export/config/sim.h b/firmware/export/config/sim.h index 1f545c5..1b69f6d 100644 --- a/firmware/export/config/sim.h +++ b/firmware/export/config/sim.h @@ -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 |