From 3367039605c29a82ce27fa72e62d27c0a146c261 Mon Sep 17 00:00:00 2001 From: Will Tatam Date: Thu, 27 Jul 2023 12:04:53 +0100 Subject: [PATCH] Fix compile errors for packet type --- usermods/audioreactive/audio_reactive.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usermods/audioreactive/audio_reactive.h b/usermods/audioreactive/audio_reactive.h index f1d64668..7245ae2b 100644 --- a/usermods/audioreactive/audio_reactive.h +++ b/usermods/audioreactive/audio_reactive.h @@ -1309,6 +1309,7 @@ class AudioReactive : public Usermod { scaledvalue = (scaledvalue - logMinSample) / (logMaxSample - logMinSample); // 0...1 return fminf(fmaxf(256.0*scaledvalue, 0), 255.0); // scaled value } +#endif /* Limits the dynamics of volumeSmth (= sampleAvg or sampleAgc). @@ -1340,7 +1341,6 @@ class AudioReactive : public Usermod { last_volumeSmth = volumeSmth; last_time = millis(); } -#endif ////////////////////// // UDP Sound Sync // @@ -1399,10 +1399,10 @@ class AudioReactive : public Usermod { } // transmitAudioData() #endif static bool isValidUdpSyncVersion(const char *header) { - return strncmp_P(header, PSTR(UDP_SYNC_HEADER), 6) == 0; + return strncmp_P(header, UDP_SYNC_HEADER, 6) == 0; } static bool isValidUdpSyncVersion_v1(const char *header) { - return strncmp_P(header, PSTR(UDP_SYNC_HEADER_v1), 6) == 0; + return strncmp_P(header, UDP_SYNC_HEADER_v1, 6) == 0; } void decodeAudioData(int packetSize, uint8_t *fftBuff) {