From 2277c8805f981f15f80e6c211ea33dd22f0c4c9b Mon Sep 17 00:00:00 2001 From: Chrome Legion Date: Sun, 25 Nov 2018 17:02:37 -0700 Subject: [PATCH] Qrome - fixed bug where ENABLE_OTA = false and crash on MDNS call --- printermonitor/printermonitor.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/printermonitor/printermonitor.ino b/printermonitor/printermonitor.ino index e3685cb..1f662f9 100644 --- a/printermonitor/printermonitor.ino +++ b/printermonitor/printermonitor.ino @@ -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