From 02221e7a4a4415bb65395629c90f3004557b027f Mon Sep 17 00:00:00 2001 From: LowPowerLab Date: Mon, 11 Jan 2016 23:10:02 -0500 Subject: [PATCH] Fix battery data type --- Examples/MotionMote/MotionMote.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Examples/MotionMote/MotionMote.ino b/Examples/MotionMote/MotionMote.ino index d5950cd..5e82acd 100644 --- a/Examples/MotionMote/MotionMote.ino +++ b/Examples/MotionMote/MotionMote.ino @@ -80,7 +80,7 @@ #endif volatile boolean motionDetected=false; float batteryVolts = 5; -char BATstr[20]; //longest battery voltage reading message = 9chars +char BATstr[10]; //longest battery voltage reading message = 9chars char sendBuf[32]; byte sendLen; @@ -159,7 +159,7 @@ void loop() { batteryReportCycles++; } -byte cycleCount=BATT_CYCLES; +uint16_t cycleCount=BATT_CYCLES; void checkBattery() { if (cycleCount++ == BATT_CYCLES) //only read battery every BATT_CYCLES sleep cycles