From 3ce37181243eaa9b182ec9f31e27324ed868e630 Mon Sep 17 00:00:00 2001 From: Frank <91616163+softhack007@users.noreply.github.com> Date: Sun, 11 Jan 2026 15:17:20 +0100 Subject: [PATCH] AR bugfix: UDP format detection remove early assignment receivedFormat = 2 --- usermods/audioreactive/audio_reactive.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usermods/audioreactive/audio_reactive.h b/usermods/audioreactive/audio_reactive.h index be9bc828..ad699f92 100644 --- a/usermods/audioreactive/audio_reactive.h +++ b/usermods/audioreactive/audio_reactive.h @@ -1898,7 +1898,7 @@ class AudioReactive : public Usermod { // Process each received packet: last value will persist, intermediate ones needed to update sequence counters if (lastValidPacketSize > 0) { if (lastValidPacketSize == sizeof(audioSyncPacket) && (isValidUdpSyncVersion((const char *)fftUdpBuffer))) { - receivedFormat = 2; + //receivedFormat = max(receivedFormat, 2); // format V2 or V2+ - will be set in decodeAudioData() haveFreshData |= decodeAudioData(lastValidPacketSize, fftUdpBuffer); } else if (lastValidPacketSize == sizeof(audioSyncPacket_v1) && (isValidUdpSyncVersion_v1((const char *)fftUdpBuffer))) { decodeAudioData_v1(lastValidPacketSize, fftUdpBuffer);