summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorNick Peskett <rockbox@peskett.co.uk>2012-02-09 10:59:25 +0000
committerNick Peskett <rockbox@peskett.co.uk>2012-02-09 10:59:25 +0000
commit4d72c1b0b4155e58ab89a5452f10b722002c1055 (patch)
treea93ed2a902dd64adfcdbfe32860e074ff054353c /firmware
parentae7b59634c82646b5ff3c92a9380f0ddad948d24 (diff)
downloadrockbox-4d72c1b0b4155e58ab89a5452f10b722002c1055.tar.gz
rockbox-4d72c1b0b4155e58ab89a5452f10b722002c1055.zip
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
Diffstat (limited to 'firmware')
-rw-r--r--firmware/export/config/sim.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/firmware/export/config/sim.h b/firmware/export/config/sim.h
index 1f545c5f36..1b69f6d15c 100644
--- a/firmware/export/config/sim.h
+++ b/firmware/export/config/sim.h
@@ -42,6 +42,13 @@
42#define CONFIG_CHARGING CHARGING_MONITOR 42#define CONFIG_CHARGING CHARGING_MONITOR
43#endif 43#endif
44 44
45/*
46 * Effectively disable battery smoothing, our simulated charge/ discharge
47 * cycle is way too fast for it otherwise
48 */
49#undef BATT_AVE_SAMPLES
50#define BATT_AVE_SAMPLES 1
51
45#undef CONFIG_USBOTG 52#undef CONFIG_USBOTG
46 53
47#undef USB_HANDLED_BY_OF 54#undef USB_HANDLED_BY_OF