diff --git a/libraries/AP_Param/AP_Param.h b/libraries/AP_Param/AP_Param.h index a58c7c561e..a39543e463 100644 --- a/libraries/AP_Param/AP_Param.h +++ b/libraries/AP_Param/AP_Param.h @@ -518,6 +518,7 @@ private: uint8_t revision; uint8_t spare; }; + static_assert(sizeof(struct EEPROM_header) == 4, "Bad EEPROM_header size!"); static uint16_t sentinal_offset; @@ -540,6 +541,7 @@ private: uint32_t key_high : 1; uint32_t group_element : 18; }; + static_assert(sizeof(struct Param_header) == 4, "Bad Param_header size!"); // number of bits in each level of nesting of groups static const uint8_t _group_level_shift = 6;