Skip to content

Commit

Permalink
fix: add missing else
Browse files Browse the repository at this point in the history
Signed-off-by: Frederic Pillon <[email protected]>
  • Loading branch information
fpistm committed Sep 22, 2023
1 parent fc318f1 commit 27bcafd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/STM32RTC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,7 @@ void STM32RTC::setAlarmSubSeconds(uint32_t subSeconds, Alarm name)
#ifdef RTC_ALARM_B
if (name == ALARM_B) {
_alarmBSubSeconds = subSeconds;
}
} else
#else
UNUSED(name);
#endif
Expand All @@ -854,7 +854,7 @@ void STM32RTC::setAlarmSeconds(uint8_t seconds, Alarm name)
#ifdef RTC_ALARM_B
if (name == ALARM_B) {
_alarmBSeconds = seconds;
}
} else
#else
UNUSED(name);
#endif
Expand All @@ -877,7 +877,7 @@ void STM32RTC::setAlarmMinutes(uint8_t minutes, Alarm name)
#ifdef RTC_ALARM_B
if (name == ALARM_B) {
_alarmBMinutes = minutes;
}
} else
#else
UNUSED(name);
#endif
Expand Down

0 comments on commit 27bcafd

Please sign in to comment.