Fix bad multiplier calculation

This commit is contained in:
Me No Dev 2018-12-24 13:55:08 +02:00 committed by GitHub
parent bed9c96f41
commit 1085e9a8f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,7 +63,7 @@ bool setCpuFrequency(uint32_t cpu_freq_mhz){
#endif #endif
rtc_clk_cpu_freq_set_config_fast(&conf); rtc_clk_cpu_freq_set_config_fast(&conf);
_cpu_freq_mhz = conf.freq_mhz; _cpu_freq_mhz = conf.freq_mhz;
_sys_time_multiplier = 80 / getApbFrequency(); _sys_time_multiplier = 80000000 / getApbFrequency();
return true; return true;
} }