mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
low frequency for C3 chip
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user