diff --git a/libraries/AP_InertialSensor/AP_InertialSensor_Invensensev3.cpp b/libraries/AP_InertialSensor/AP_InertialSensor_Invensensev3.cpp index 474819cbdf..024d1f56a2 100644 --- a/libraries/AP_InertialSensor/AP_InertialSensor_Invensensev3.cpp +++ b/libraries/AP_InertialSensor/AP_InertialSensor_Invensensev3.cpp @@ -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