Skip to content

Commit 4b48356

Browse files
committed
Cherry pick fix for ESP.getCpuFreqMHz().
espressif/arduino-esp32#3007
1 parent 01bed09 commit 4b48356

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/esp32/Esp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class EspClass
5858
void restart();
5959
uint32_t getFreeHeap();
6060
uint8_t getChipRevision();
61-
uint8_t getCpuFreqMHz(){ return CONFIG_ESP32_DEFAULT_CPU_FREQ_MHZ; }
61+
uint32_t getCpuFreqMHz() { return getCpuFrequencyMhz(); }
6262
uint32_t getCycleCount();
6363
const char * getSdkVersion();
6464

0 commit comments

Comments
 (0)