Skip to content

Commit cd5257a

Browse files
lbernstoneme-no-dev
authored andcommitted
ESP.getCpuFreqMHz fix (#3007)
* ESP.getCpuFreqMHz was returning the CONFIG_ variable. Now calls the getCpuFrequencyMhz function. * Changed the Esp function to uint32_t to match
1 parent ee6336a commit cd5257a

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
@@ -75,7 +75,7 @@ class EspClass
7575
uint32_t getMaxAllocPsram();
7676

7777
uint8_t getChipRevision();
78-
uint8_t getCpuFreqMHz(){ return CONFIG_ESP32_DEFAULT_CPU_FREQ_MHZ; }
78+
uint32_t getCpuFreqMHz(){ return getCpuFrequencyMhz(); }
7979
uint32_t getCycleCount();
8080
const char * getSdkVersion();
8181

0 commit comments

Comments
 (0)