From 27bcafdaad94749cae3436d11d41e5ae9e862f67 Mon Sep 17 00:00:00 2001 From: Frederic Pillon Date: Thu, 21 Sep 2023 15:24:21 +0200 Subject: [PATCH] fix: add missing else Signed-off-by: Frederic Pillon --- src/STM32RTC.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/STM32RTC.cpp b/src/STM32RTC.cpp index 4e8e58d..3397043 100644 --- a/src/STM32RTC.cpp +++ b/src/STM32RTC.cpp @@ -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 @@ -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 @@ -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