stop old chip from crashing

This commit is contained in:
Thomas Göttgens 2021-12-30 22:20:15 +01:00 committed by GitHub
parent e24a2116d8
commit 20497335c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,7 +65,11 @@ void setCPUFast(bool on)
return;
}
setCpuFrequencyMhz(on ? 240 : 80);
// 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
setCpuFrequencyMhz(on ? 240 : 80);
#endif
#endif
}