Skip to content

Commit 344114d

Browse files
committed
fix: add missing else
Signed-off-by: Frederic Pillon <[email protected]>
1 parent 475be89 commit 344114d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/STM32RTC.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,7 @@ void STM32RTC::setAlarmSubSeconds(uint32_t subSeconds, Alarm name)
831831
#ifdef RTC_ALARM_B
832832
if (name == ALARM_B) {
833833
_alarmBSubSeconds = subSeconds;
834-
}
834+
} else
835835
#else
836836
UNUSED(name);
837837
#endif
@@ -854,7 +854,7 @@ void STM32RTC::setAlarmSeconds(uint8_t seconds, Alarm name)
854854
#ifdef RTC_ALARM_B
855855
if (name == ALARM_B) {
856856
_alarmBSeconds = seconds;
857-
}
857+
} else
858858
#else
859859
UNUSED(name);
860860
#endif
@@ -877,7 +877,7 @@ void STM32RTC::setAlarmMinutes(uint8_t minutes, Alarm name)
877877
#ifdef RTC_ALARM_B
878878
if (name == ALARM_B) {
879879
_alarmBMinutes = minutes;
880-
}
880+
} else
881881
#else
882882
UNUSED(name);
883883
#endif

0 commit comments

Comments
 (0)