bugfix
seems I was too fast with removing _P from strncmp_P
This commit is contained in:
@@ -1408,10 +1408,10 @@ class AudioReactive : public Usermod {
|
|||||||
} // transmitAudioData()
|
} // transmitAudioData()
|
||||||
#endif
|
#endif
|
||||||
static bool isValidUdpSyncVersion(const char *header) {
|
static bool isValidUdpSyncVersion(const char *header) {
|
||||||
return strncmp(header, UDP_SYNC_HEADER, 6) == 0;
|
return strncmp_P(header, UDP_SYNC_HEADER, 6) == 0;
|
||||||
}
|
}
|
||||||
static bool isValidUdpSyncVersion_v1(const char *header) {
|
static bool isValidUdpSyncVersion_v1(const char *header) {
|
||||||
return strncmp(header, UDP_SYNC_HEADER_v1, 6) == 0;
|
return strncmp_P(header, UDP_SYNC_HEADER_v1, 6) == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void decodeAudioData(int packetSize, uint8_t *fftBuff) {
|
void decodeAudioData(int packetSize, uint8_t *fftBuff) {
|
||||||
|
|||||||
Reference in New Issue
Block a user