Fix audio sync check

This commit is contained in:
Blaz Kristan 2022-08-19 15:17:04 +02:00
parent e9f6509cb0
commit f7652bd2ef

View File

@ -911,7 +911,7 @@ class AudioReactive : public Usermod {
*/ */
void connected() void connected()
{ {
if (audioSyncPort > 0 || (audioSyncEnabled & 0x03)) { if (audioSyncPort > 0 && (audioSyncEnabled & 0x03)) {
#ifndef ESP8266 #ifndef ESP8266
udpSyncConnected = fftUdp.beginMulticast(IPAddress(239, 0, 0, 1), audioSyncPort); udpSyncConnected = fftUdp.beginMulticast(IPAddress(239, 0, 0, 1), audioSyncPort);
#else #else