Skip to content

Commit 4a90aee

Browse files
committed
fix ESP:: getCpuFreqMHz
1 parent 450ea0d commit 4a90aee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/esp32/Esp.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class EspClass
5555
~EspClass() {}
5656
void restart();
5757
uint32_t getFreeHeap();
58-
uint8_t getCpuFreqMHz(){ return F_CPU; }
58+
uint8_t getCpuFreqMHz(){ return CONFIG_ESP32_DEFAULT_CPU_FREQ_MHZ; }
5959
uint32_t getCycleCount();
6060
const char * getSdkVersion();
6161

0 commit comments

Comments
 (0)