AP_InertialSensor: correct warnings on static_assert requiring a message

This commit is contained in:
Peter Barker 2024-08-08 12:34:03 +10:00 committed by Peter Barker
parent ce03fd3ed9
commit f389549d5d
1 changed files with 2 additions and 2 deletions

View File

@ -166,8 +166,8 @@ struct PACKED FIFODataHighRes {
#define INV3_SAMPLE_SIZE sizeof(FIFOData)
#define INV3_HIGHRES_SAMPLE_SIZE sizeof(FIFODataHighRes)
static_assert(sizeof(FIFOData) == 16);
static_assert(sizeof(FIFODataHighRes) == 20);
static_assert(sizeof(FIFOData) == 16, "FIFOData must be 16 bytes");
static_assert(sizeof(FIFODataHighRes) == 20, "FIFODataHighRes must be 20 bytes");
#define INV3_FIFO_BUFFER_LEN 8