bugfix: hseFrequencyMhz was never assigned

This commit is contained in:
rusefillc 2024-11-19 17:15:54 -05:00
parent 91c773b538
commit 0328c08f2b
1 changed files with 1 additions and 1 deletions

View File

@ -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);