From 09b7268ec1f1dba8b0440e18517b2f384bd565d2 Mon Sep 17 00:00:00 2001 From: dongie Date: Mon, 26 May 2014 20:24:14 +0900 Subject: [PATCH] hardware divider supports up to 8S, make it so in the code as well. --- src/sensors.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sensors.c b/src/sensors.c index 2b3b421a69..b2e0385bce 100755 --- a/src/sensors.c +++ b/src/sensors.c @@ -155,8 +155,8 @@ void batteryInit(void) voltage = batteryAdcToVoltage((uint16_t)(voltage / 32)); - // autodetect cell count, going from 2S..6S - for (i = 1; i < 6; i++) { + // autodetect cell count, going from 2S..8S + for (i = 1; i < 8; i++) { if (voltage < i * mcfg.vbatmaxcellvoltage) break; }