Skip to content

Commit

Permalink
Qrome - fixed bug where ENABLE_OTA = false and crash on MDNS call
Browse files Browse the repository at this point in the history
  • Loading branch information
Qrome committed Nov 26, 2018
1 parent 04ed5ae commit 2277c88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions printermonitor/printermonitor.ino
Original file line number Diff line number Diff line change
Expand Up @@ -287,13 +287,13 @@ void setup() {
display.drawString(64, 20, "Enable in Settings.h");
display.display();
}

flashLED(5, 500);
findMDNS(); //go find Octoprint Server by the hostname
Serial.println("*** Leaving setup()");
}

void findMDNS() {
if (OctoPrintHostName == "") {
if (OctoPrintHostName == "" || ENABLE_OTA == false) {
return; // nothing to do here
}
// We now query our network for 'web servers' service
Expand Down

0 comments on commit 2277c88

Please sign in to comment.