From 0328c08f2b8a46e9c9be9aa70855130eec6088b3 Mon Sep 17 00:00:00 2001 From: rusefillc Date: Tue, 19 Nov 2024 17:15:54 -0500 Subject: [PATCH] bugfix: hseFrequencyMhz was never assigned --- firmware/hw_layer/ports/stm32/osc_detector.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/hw_layer/ports/stm32/osc_detector.cpp b/firmware/hw_layer/ports/stm32/osc_detector.cpp index a364d2fd97..039cc9f402 100644 --- a/firmware/hw_layer/ports/stm32/osc_detector.cpp +++ b/firmware/hw_layer/ports/stm32/osc_detector.cpp @@ -177,7 +177,7 @@ void OscDetector() { disableTimer(); float hseFrequencyHz = 10 * rtcpreDivider * STM32_TIMCLK2 / hseCounts; - + hseFrequencyMhz = hseFrequencyHz / 1e6; autoDetectedRoundedMhz = ((int)hseFrequencyHz + (1e6 / 2)) / 1e6; reprogramPll(autoDetectedRoundedMhz);