1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-06 05:21:22 +03:00

getCpuFreqMHz(): fix when F_CPU is not defined (#7554)

This commit is contained in:
david gauchard 2020-08-27 21:56:03 +02:00 committed by GitHub
parent e53aa87160
commit 53e4dec51f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -127,10 +127,7 @@ class EspClass {
return esp_get_cpu_freq_mhz();
}
#else
uint8_t getCpuFreqMHz() const
{
return esp_get_cpu_freq_mhz();
}
uint8_t getCpuFreqMHz() const;
#endif
uint32_t getFlashChipId();