From 9183b45d845e2947b025a6104dba7a15bd6f9ef9 Mon Sep 17 00:00:00 2001
From: Larry Bernstone <lbernstone@gmail.com>
Date: Thu, 18 Jul 2019 19:52:09 -0600
Subject: [PATCH 1/2] ESP.getCpuFreqMHz was returning the CONFIG_ variable. 
 Now calls the getCpuFrequencyMhz function.

---
 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 f8e7b9cfe70..14d9be9f382 100644
--- a/cores/esp32/Esp.h
+++ b/cores/esp32/Esp.h
@@ -75,7 +75,7 @@ class EspClass
     uint32_t getMaxAllocPsram();
 
     uint8_t getChipRevision();
-    uint8_t getCpuFreqMHz(){ return CONFIG_ESP32_DEFAULT_CPU_FREQ_MHZ; }
+    uint8_t getCpuFreqMHz(){ return getCpuFrequencyMhz(); }
     uint32_t getCycleCount();
     const char * getSdkVersion();
 

From 80d07c83340a70a0ca3c32f7ee401c1daad957aa Mon Sep 17 00:00:00 2001
From: Larry Bernstone <lbernstone@gmail.com>
Date: Thu, 18 Jul 2019 20:59:08 -0600
Subject: [PATCH 2/2] 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 14d9be9f382..9acb6665c3d 100644
--- a/cores/esp32/Esp.h
+++ b/cores/esp32/Esp.h
@@ -75,7 +75,7 @@ class EspClass
     uint32_t getMaxAllocPsram();
 
     uint8_t getChipRevision();
-    uint8_t getCpuFreqMHz(){ return getCpuFrequencyMhz(); }
+    uint32_t getCpuFreqMHz(){ return getCpuFrequencyMhz(); }
     uint32_t getCycleCount();
     const char * getSdkVersion();