Fix Hue discovery for Zigbee and Scripting #10950

This commit is contained in:
Stephan Hadinger 2021-02-15 22:11:19 +01:00
parent 725650cac5
commit 32c7f16a7f

View File

@ -137,7 +137,7 @@ void PollUdp(void)
// Simple Service Discovery Protocol (SSDP)
if (Settings.flag2.emulation) {
#if defined(USE_SCRIPT_HUE) || defined(USE_ZIGBEE)
if (TasmotaGlobal.devices_present && (strstr_P(packet_buffer, PSTR("M-SEARCH")) != nullptr)) {
if (strstr_P(packet_buffer, PSTR("M-SEARCH")) != nullptr) {
#else
if (TasmotaGlobal.devices_present && (strstr_P(packet_buffer, PSTR("M-SEARCH")) != nullptr)) {
#endif