mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-28 10:42:08 +00:00
disable the frequency switcher for the C3 CPU...
This commit is contained in:
parent
0940c6462b
commit
ecd67f0a85
@ -61,13 +61,15 @@ void setCPUFast(bool on)
|
|||||||
* all WiFi use cases.
|
* all WiFi use cases.
|
||||||
* (Added: Dec 23, 2021 by Jm Casler)
|
* (Added: Dec 23, 2021 by Jm Casler)
|
||||||
*/
|
*/
|
||||||
|
#ifndef CONFIG_IDF_TARGET_ESP32C3
|
||||||
LOG_DEBUG("Setting CPU to 240mhz because WiFi is in use.\n");
|
LOG_DEBUG("Setting CPU to 240mhz because WiFi is in use.\n");
|
||||||
setCpuFrequencyMhz(240);
|
setCpuFrequencyMhz(240);
|
||||||
|
#endif
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// The Heltec LORA32 V1 runs at 26 MHz base frequency and doesn't react well to switching to 80 MHz...
|
// The Heltec LORA32 V1 runs at 26 MHz base frequency and doesn't react well to switching to 80 MHz...
|
||||||
#ifndef ARDUINO_HELTEC_WIFI_LORA_32
|
#if !defined(ARDUINO_HELTEC_WIFI_LORA_32) && !defined(CONFIG_IDF_TARGET_ESP32C3)
|
||||||
setCpuFrequencyMhz(on ? 240 : 80);
|
setCpuFrequencyMhz(on ? 240 : 80);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user