Fix battery data type
This commit is contained in:
parent
f8c65fe7b6
commit
02221e7a4a
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue