Qrome - fixed bug where ENABLE_OTA = false and crash on MDNS call

pull/52/head
Chrome Legion 2018-11-25 17:02:37 -07:00
parent 04ed5ae77d
commit 2277c8805f
1 changed files with 2 additions and 2 deletions

View File

@ -287,13 +287,13 @@ void setup() {
display.drawString(64, 20, "Enable in Settings.h"); display.drawString(64, 20, "Enable in Settings.h");
display.display(); display.display();
} }
flashLED(5, 500); flashLED(5, 500);
findMDNS(); //go find Octoprint Server by the hostname findMDNS(); //go find Octoprint Server by the hostname
Serial.println("*** Leaving setup()");
} }
void findMDNS() { void findMDNS() {
if (OctoPrintHostName == "") { if (OctoPrintHostName == "" || ENABLE_OTA == false) {
return; // nothing to do here return; // nothing to do here
} }
// We now query our network for 'web servers' service // We now query our network for 'web servers' service