From e695fa6778190b15fcee2bef1ca861283ec3d4e0 Mon Sep 17 00:00:00 2001 From: andreika-git Date: Fri, 29 Dec 2023 21:03:14 +0200 Subject: [PATCH] BL doesn't know efiPrintf --- firmware/hw_layer/ports/stm32/stm32_common.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/firmware/hw_layer/ports/stm32/stm32_common.cpp b/firmware/hw_layer/ports/stm32/stm32_common.cpp index cb9d5936e6..907cd00090 100644 --- a/firmware/hw_layer/ports/stm32/stm32_common.cpp +++ b/firmware/hw_layer/ports/stm32/stm32_common.cpp @@ -109,7 +109,9 @@ void startWatchdog(int timeoutMs) { static WDGConfig wdgcfg; wdgcfg.pr = STM32_IWDG_PR_64; // t = (1/32768) * 64 = ~2 ms wdgcfg.rlr = STM32_IWDG_RL((uint32_t)((32.768f / 64.0f) * timeoutMs)); +#if 0 efiPrintf("[wdgStart]"); +#endif wdgStart(&WDGD1, &wdgcfg); #endif // HAL_USE_WDG } @@ -117,7 +119,9 @@ void startWatchdog(int timeoutMs) { static efitimems_t watchdogResetPeriodMs = 0; void setWatchdogResetPeriod(int resetMs) { +#if 0 efiPrintf("[dev] wd %d", resetMs); +#endif watchdogResetPeriodMs = (efitimems_t)resetMs; }