From aaa7a6ee9c2f8923cd2edf951b3b5d549c4a99f9 Mon Sep 17 00:00:00 2001 From: Manuel Weiser Date: Mon, 24 Feb 2025 07:47:50 +0100 Subject: [PATCH] fix: configure CPU frequency settings in setup function only for testing --- src/main.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 0265cd3..e2e85e8 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -15,10 +15,17 @@ #include "esp_task_wdt.h" #include "commonFS.h" +#include "soc/rtc.h" + // ##### SETUP ##### void setup() { Serial.begin(115200); + rtc_cpu_freq_config_t config; + rtc_clk_cpu_freq_get_config(&config); + rtc_clk_cpu_freq_to_config(RTC_CPU_FREQ_80M, &config); + rtc_clk_cpu_freq_set_config_fast(&config); + uint64_t chipid; chipid = ESP.getEfuseMac(); //The chip ID is essentially its MAC address(length: 6 bytes).