- fix compile disabled KNOCK_SPECTROGRAM

This commit is contained in:
3er0.1ive 2024-05-04 17:28:27 +03:00 committed by rusefillc
parent b78a09cbde
commit 46e908da1e
1 changed files with 2 additions and 0 deletions

View File

@ -192,10 +192,12 @@ static void processLastKnockEvent() {
return;
}
#ifdef KNOCK_SPECTROGRAM
{
chibios_rt::CriticalSectionLocker csl;
enableKnockSpectrogram = engineConfiguration->enableKnockSpectrogram;
}
#endif
float sumSq = 0;