Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit cd5257a

Browse files
lbernstoneme-no-dev
authored andcommittedAug 20, 2019
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

Lines changed: 1 addition & 1 deletion
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)
Please sign in to comment.