1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-16 04:45:24 +03:00

Enabled switch fallthrough checking by compiler

This commit is contained in:
Martin Budden 2017-11-24 07:08:44 +00:00
parent 9dda8c4f18
commit 671382234a
20 changed files with 100 additions and 58 deletions

View file

@ -234,7 +234,7 @@ void gyroDataAnalyseUpdate(biquadFilter_t *notchFilterDyn)
arm_bitreversal_32((uint32_t*) fftData, Sint->bitRevLength, Sint->pBitRevTable);
DEBUG_SET(DEBUG_FFT_TIME, 1, micros() - startTime);
step++;
// fall through
FALLTHROUGH;
}
case STEP_STAGE_RFFT_F32:
{
@ -250,7 +250,7 @@ void gyroDataAnalyseUpdate(biquadFilter_t *notchFilterDyn)
arm_cmplx_mag_f32(rfftData, fftData, fftBinCount);
DEBUG_SET(DEBUG_FFT_TIME, 2, micros() - startTime);
step++;
// fall through
FALLTHROUGH;
}
case STEP_CALC_FREQUENCIES:
{
@ -301,7 +301,7 @@ void gyroDataAnalyseUpdate(biquadFilter_t *notchFilterDyn)
axis = (axis + 1) % 3;
step++;
// fall through
FALLTHROUGH;
}
case STEP_HANNING:
{