Skip to content

Commit

Permalink
ESP.getCpuFreqMHz fix (#3007)
Browse files Browse the repository at this point in the history
* ESP.getCpuFreqMHz was returning the CONFIG_ variable.  Now calls the getCpuFrequencyMhz function.

* Changed the Esp function to uint32_t to match
  • Loading branch information
lbernstone authored and me-no-dev committed Aug 20, 2019
1 parent ee6336a commit cd5257a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cores/esp32/Esp.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class EspClass
uint32_t getMaxAllocPsram();

uint8_t getChipRevision();
uint8_t getCpuFreqMHz(){ return CONFIG_ESP32_DEFAULT_CPU_FREQ_MHZ; }
uint32_t getCpuFreqMHz(){ return getCpuFrequencyMhz(); }
uint32_t getCycleCount();
const char * getSdkVersion();

Expand Down

0 comments on commit cd5257a

Please sign in to comment.