From cd5257ad78f0d62d28afaa579257904a767842d9 Mon Sep 17 00:00:00 2001 From: lbernstone Date: Tue, 20 Aug 2019 07:48:26 -0600 Subject: [PATCH] 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 --- cores/esp32/Esp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cores/esp32/Esp.h b/cores/esp32/Esp.h index f8e7b9cf..9acb6665 100644 --- a/cores/esp32/Esp.h +++ b/cores/esp32/Esp.h @@ -75,7 +75,7 @@ public: 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();