1
0
mirror of https://github.com/arduino-libraries/ArduinoLowPower.git synced 2025-04-20 22:27:50 +03:00

[SAMD] use RTC.begin(false) for new RTC library behaviour

This commit is contained in:
Martino Facchin 2017-01-17 16:37:34 +01:00
parent 562190f552
commit 0f7f5904ad

View File

@ -53,7 +53,7 @@ void ArduinoLowPowerClass::attachInterruptWakeup(uint32_t pin, voidFuncPtr callb
// RTC library should call this API to enable the alarm subsystem // RTC library should call this API to enable the alarm subsystem
switch (pin) { switch (pin) {
case RTC_ALARM_WAKEUP: case RTC_ALARM_WAKEUP:
rtc.begin(); rtc.begin(false);
rtc.attachInterrupt(callback); rtc.attachInterrupt(callback);
/*case UART_WAKEUP:*/ /*case UART_WAKEUP:*/
} }