From 64f2f82e0c1cea301aa7563e32553cdeeb28dd7e Mon Sep 17 00:00:00 2001 From: MichaelDvP Date: Mon, 31 Oct 2022 11:03:10 +0100 Subject: [PATCH] low frequency for C3 chip --- src/system.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/system.cpp b/src/system.cpp index 9685a7491..64a00c0dd 100644 --- a/src/system.cpp +++ b/src/system.cpp @@ -377,7 +377,11 @@ void System::start() { // disable bluetooth module // periph_module_disable(PERIPH_BT_MODULE); if (low_clock_) { +#if CONFIG_IDF_TARGET_ESP32C3 + setCpuFrequencyMhz(80); +#else setCpuFrequencyMhz(160); +#endif } fstotal_ = LittleFS.totalBytes() / 1024; // read only once, it takes 500 ms to read psram_ = ESP.getPsramSize() / 1024;