diff --git a/libraries/mbed/targets/hal/TARGET_STM/TARGET_STM32L4/rtc_api.c b/libraries/mbed/targets/hal/TARGET_STM/TARGET_STM32L4/rtc_api.c index cde22774e1..1176bdf9ae 100644 --- a/libraries/mbed/targets/hal/TARGET_STM/TARGET_STM32L4/rtc_api.c +++ b/libraries/mbed/targets/hal/TARGET_STM/TARGET_STM32L4/rtc_api.c @@ -147,8 +147,11 @@ int rtc_isenabled(void) #if DEVICE_RTC_LSI return rtc_inited; #else - if ((RTC->ISR & RTC_ISR_INITS) == RTC_ISR_INITS) return 1; - else return 0; + if ((RTC->ISR & RTC_ISR_INITS) == RTC_ISR_INITS) { + return 1; + } else { + return 0; + } #endif }