Qrome - fixed bug where ENABLE_OTA = false and crash on MDNS call
parent
04ed5ae77d
commit
2277c8805f
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue