Skip to content

Commit

Permalink
AP_InertialSensor: correct warnings on static_assert requiring a message
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker committed Aug 12, 2024
1 parent ce03fd3 commit f389549
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit f389549

Please sign in to comment.