Skip to content

Commit 3cf4bb6

Browse files
committed
don't scale CPU Freq, if OTA FW Updates are enabled
1 parent 8e73752 commit 3cf4bb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/MySensors/examples/SensebenderMicro/SensebenderMicro.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ void loop() {
198198
transmission_occured = false;
199199
if ((measureCount == 5) && highfreq)
200200
{
201-
clock_prescale_set(clock_div_8); // Switch to 1Mhz for the reminder of the sketch, save power.
201+
if (!ota_enabled) clock_prescale_set(clock_div_8); // Switch to 1Mhz for the reminder of the sketch, save power.
202202
highfreq = false;
203203
}
204204

0 commit comments

Comments
 (0)