Skip to content

Commit

Permalink
Fix #157: remove useless __HAL_PWR_CLEAR_FLAG calls
Browse files Browse the repository at this point in the history
  • Loading branch information
terrillmoore committed Apr 15, 2019
1 parent d0a03aa commit 1bfb567
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/lib/stm32/stm32l0/CatenaStm32L0Rtc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,6 @@ void CatenaStm32L0Rtc::SleepForAlarm(
while (! m_Alarm)
{
++nWakes;
__HAL_PWR_CLEAR_FLAG(PWR_FLAG_WU);
HAL_PWR_EnterSTOPMode(
PWR_MAINREGULATOR_ON,
PWR_SLEEPENTRY_WFI
Expand All @@ -378,7 +377,6 @@ void CatenaStm32L0Rtc::SleepForAlarm(
while (! m_Alarm)
{
++nWakes;
__HAL_PWR_CLEAR_FLAG(PWR_FLAG_WU);
HAL_PWR_EnterSTOPMode(
PWR_LOWPOWERREGULATOR_ON,
PWR_SLEEPENTRY_WFI
Expand Down

0 comments on commit 1bfb567

Please sign in to comment.