low frequency for C3 chip

This commit is contained in:
MichaelDvP
2022-10-31 11:03:10 +01:00
parent 98495c8114
commit 64f2f82e0c

View File

@@ -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;