Skip to content

Commit

Permalink
only enable OTA for PCBs
Browse files Browse the repository at this point in the history
  • Loading branch information
tcsullivan committed Mar 24, 2024
1 parent 2c3646a commit f9631b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion noisemeter-device/noisemeter-device.ino
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ void loop() {
}
});

#if defined(BOARD_ESP32_PCB)
// We have WiFi: also check for software updates
if (lastOTACheck.secondsBetween(now) >= OTA_INTERVAL_SEC) {
lastOTACheck = now;
Expand All @@ -232,7 +233,7 @@ void loop() {
SERIAL.println("No update available.");
}
}

#endif // BOARD_ESP32_PCB
}

if (!packets.empty()) {
Expand Down

0 comments on commit f9631b0

Please sign in to comment.