Skip to content

Commit

Permalink
why does it spinwait for subseconds?
Browse files Browse the repository at this point in the history
  • Loading branch information
mck1117 committed Sep 14, 2022
1 parent 639f3ea commit f70901e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions os/hal/ports/STM32/LLD/RTCv2/hal_rtc_lld.c
Original file line number Diff line number Diff line change
Expand Up @@ -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__)

/*===========================================================================*/
Expand Down

0 comments on commit f70901e

Please sign in to comment.