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) {