Skip to content

Commit 1085e9a

Browse files
authored
Fix bad multiplier calculation
1 parent bed9c96 commit 1085e9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/esp32/esp32-hal-misc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ bool setCpuFrequency(uint32_t cpu_freq_mhz){
6363
#endif
6464
rtc_clk_cpu_freq_set_config_fast(&conf);
6565
_cpu_freq_mhz = conf.freq_mhz;
66-
_sys_time_multiplier = 80 / getApbFrequency();
66+
_sys_time_multiplier = 80000000 / getApbFrequency();
6767
return true;
6868
}
6969

0 commit comments

Comments
 (0)