small param adjustment+fix
This commit is contained in:
parent
b977159efd
commit
fce4d74efe
|
|
@ -120,7 +120,6 @@ void loop() {
|
|||
DEBUGln(BATstr);
|
||||
|
||||
radio.sleep();
|
||||
motionDetected=false;
|
||||
digitalWrite(EXTLED, LOW);
|
||||
}
|
||||
else if (batteryReportCycles == BATT_CYCLES)
|
||||
|
|
@ -131,6 +130,7 @@ void loop() {
|
|||
radio.sleep();
|
||||
batteryReportCycles=0;
|
||||
}
|
||||
motionDetected=false; //do NOT move this after the SLEEP line below or motion will never be detected
|
||||
LowPower.powerDown(SLEEP_8S, ADC_OFF, BOD_OFF);
|
||||
batteryReportCycles++;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue