bugfix for sound sync - fftResult[] did not use 255
transmitData.fftResult[] and fftResult[] are both uint8, no need to constrain the value.
This commit is contained in:
@@ -1590,7 +1590,7 @@ class AudioReactive : public Usermod {
|
||||
transmitData.zeroCrossingCount = zeroCrossingCount;
|
||||
|
||||
for (int i = 0; i < NUM_GEQ_CHANNELS; i++) {
|
||||
transmitData.fftResult[i] = (uint8_t)constrain(fftResult[i], 0, 254);
|
||||
transmitData.fftResult[i] = fftResult[i];
|
||||
}
|
||||
|
||||
transmitData.FFT_Magnitude = my_magnitude;
|
||||
|
||||
Reference in New Issue
Block a user