Skip to content

Commit

Permalink
Fix bad multiplier calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
me-no-dev committed Dec 24, 2018
1 parent bed9c96 commit 1085e9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cores/esp32/esp32-hal-misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ bool setCpuFrequency(uint32_t cpu_freq_mhz){
#endif
rtc_clk_cpu_freq_set_config_fast(&conf);
_cpu_freq_mhz = conf.freq_mhz;
_sys_time_multiplier = 80 / getApbFrequency();
_sys_time_multiplier = 80000000 / getApbFrequency();
return true;
}

Expand Down

0 comments on commit 1085e9a

Please sign in to comment.