Update support.ino

This commit is contained in:
Adrian Scillato 2018-05-11 12:11:08 -03:00 committed by GitHub
parent 3a3989276d
commit beda76a80f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,8 +36,8 @@ byte oswatch_blocked_loop = 0;
#endif // USE_WS2812_DMA
#ifdef USE_KNX
bool KNX_Started = false;
#endif // USE_KNX
bool knx_started = false;
#endif // USE_KNX
void OsWatchTicker()
{
@ -827,19 +827,19 @@ void WifiCheck(uint8_t param)
#endif // USE_EMULATION
#endif // USE_WEBSERVER
#ifdef USE_KNX
if (!KNX_Started && Settings.flag.knx_enabled) {
if (!knx_started && Settings.flag.knx_enabled) {
KNXStart();
KNX_Started = true;
knx_started = true;
}
#endif // USE_KNX
#endif // USE_KNX
} else {
#if defined(USE_WEBSERVER) && defined(USE_EMULATION)
UdpDisconnect();
#endif // USE_EMULATION
mdns_begun = false;
#ifdef USE_KNX
KNX_Started = false;
#endif // USE_KNX
knx_started = false;
#endif // USE_KNX
}
}
}