1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-12 19:10:32 +03:00

Fix misplaced #else/#endif in accgyro_spi_icm456xx.c (#14445)

This commit is contained in:
mjs1441 2025-06-14 19:22:31 +01:00 committed by GitHub
parent 0e2faff6dc
commit c3fe02be20
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -479,7 +479,7 @@ bool icm456xxAccReadSPI(accDev_t *acc)
spiWait(&acc->gyro->dev);
} else
#else
#endif
{
// Interrupts are present, but no DMA. Non-DMA read
uint8_t raw[ICM456XX_DATA_LENGTH];
@ -493,7 +493,6 @@ bool icm456xxAccReadSPI(accDev_t *acc)
acc->ADCRaw[Z] = (int16_t)((raw[5] << 8) | raw[4]);
}
#endif
break;
}