Skip to content

Commit c1b24fb

Browse files
authored
Merge pull request #24 from per1234/fix-day-sleeps
Allow sleep durations of 1 day or longer
2 parents 892594a + fa5c249 commit c1b24fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/samd/ArduinoLowPower.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ void ArduinoLowPowerClass::setAlarmIn(uint32_t millis) {
5656

5757
uint32_t now = rtc.getEpoch();
5858
rtc.setAlarmEpoch(now + millis/1000);
59-
rtc.enableAlarm(rtc.MATCH_HHMMSS);
59+
rtc.enableAlarm(rtc.MATCH_YYMMDDHHMMSS);
6060
}
6161

6262
void ArduinoLowPowerClass::attachInterruptWakeup(uint32_t pin, voidFuncPtr callback, uint32_t mode) {

0 commit comments

Comments
 (0)