Skip to content

Commit 664ee32

Browse files
committed
Update member enum name
See stm32duino/STM32RTC#12 Signed-off-by: Frederic.Pillon <[email protected]>
1 parent b388d85 commit 664ee32

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/STM32LowPower.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,16 +185,16 @@ void STM32LowPower::programRtcWakeUp(uint32_t millis, LP_Mode lp_mode)
185185
break;
186186
// LSI or LSE must be selected as clock source to wakeup the device.
187187
case DEEP_SLEEP_MODE:
188-
clkSrc = (clkSrc == STM32RTC::RTC_HSE_CLOCK) ? STM32RTC::RTC_LSI_CLOCK : clkSrc;
188+
clkSrc = (clkSrc == STM32RTC::HSE_CLOCK) ? STM32RTC::LSI_CLOCK : clkSrc;
189189
break;
190190
default:
191191
case SHUTDOWN_MODE:
192192
#ifdef STM32L4xx
193193
// For shutdown mode LSE have to be used (STM32L4 series only)
194-
clkSrc = STM32RTC::RTC_LSE_CLOCK;
194+
clkSrc = STM32RTC::LSE_CLOCK;
195195
#else
196196
// LSE or LSI
197-
clkSrc = (clkSrc == STM32RTC::RTC_HSE_CLOCK) ? STM32RTC::RTC_LSI_CLOCK : clkSrc;
197+
clkSrc = (clkSrc == STM32RTC::HSE_CLOCK) ? STM32RTC::LSI_CLOCK : clkSrc;
198198
#endif
199199
break;
200200
}

0 commit comments

Comments
 (0)