From 939ca5429134d89bedfb4f825ece11930fa7ecb3 Mon Sep 17 00:00:00 2001 From: Markus Geiger Date: Mon, 18 Mar 2019 22:30:53 +0100 Subject: [PATCH] bugfix mDNS update --- GeigerCounter/GeigerCounter.ino | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/GeigerCounter/GeigerCounter.ino b/GeigerCounter/GeigerCounter.ino index 2947d71..68bf644 100644 --- a/GeigerCounter/GeigerCounter.ino +++ b/GeigerCounter/GeigerCounter.ino @@ -246,8 +246,11 @@ void setup() void loop() { - // processing mDNS - MDNS.update(); + if (WiFi.status() == WL_CONNECTED) + { + // processing mDNS + MDNS.update(); + } // piezo tick handling switch (piezo_state)