don't scale CPU Freq, if OTA FW Updates are enabled

This commit is contained in:
Thomas Mørch
2015-08-03 23:02:19 +02:00
parent 8e73752a03
commit 3cf4bb65af
@@ -198,7 +198,7 @@ void loop() {
transmission_occured = false; transmission_occured = false;
if ((measureCount == 5) && highfreq) if ((measureCount == 5) && highfreq)
{ {
clock_prescale_set(clock_div_8); // Switch to 1Mhz for the reminder of the sketch, save power. if (!ota_enabled) clock_prescale_set(clock_div_8); // Switch to 1Mhz for the reminder of the sketch, save power.
highfreq = false; highfreq = false;
} }