Merge pull request #10983 from s-hadinger/fix_hue_udp

Fix Hue discovery for Zigbee and Scripting #10950
This commit is contained in:
s-hadinger 2021-02-15 22:24:43 +01:00 committed by GitHub
commit e54487fd24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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