From 4d72c1b0b4155e58ab89a5452f10b722002c1055 Mon Sep 17 00:00:00 2001 From: Nick Peskett Date: Thu, 9 Feb 2012 10:59:25 +0000 Subject: 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 --- firmware/export/config/sim.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'firmware/export/config') 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 @@ #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 -- cgit v1.2.3