From 5a0633f0d2777a2abb733404ee57fd3b84128aae Mon Sep 17 00:00:00 2001 From: Matthew Kennedy Date: Wed, 14 Sep 2022 01:04:36 -0700 Subject: [PATCH] why does it spinwait for subseconds? --- os/hal/ports/STM32/LLD/RTCv2/hal_rtc_lld.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/os/hal/ports/STM32/LLD/RTCv2/hal_rtc_lld.c b/os/hal/ports/STM32/LLD/RTCv2/hal_rtc_lld.c index ebd10ddbe..79807ecb9 100644 --- a/os/hal/ports/STM32/LLD/RTCv2/hal_rtc_lld.c +++ b/os/hal/ports/STM32/LLD/RTCv2/hal_rtc_lld.c @@ -28,6 +28,11 @@ #include "hal.h" +// If you enable subseconds, there is a chance that this code will hang while locked (!) +// See https://github.com/rusefi/rusefi/issues/4557 +#undef STM32_RTC_HAS_SUBSECONDS +#define STM32_RTC_HAS_SUBSECONDS FALSE + #if HAL_USE_RTC || defined(__DOXYGEN__) /*===========================================================================*/