From 3e9f0971e1cab2a6de1eaeb0ae8c91099eb9ec66 Mon Sep 17 00:00:00 2001 From: Jared Boone Date: Mon, 5 Oct 2015 11:56:12 -0700 Subject: [PATCH] Assert that FSKConfiguration size is the same between application and baseband binaries. --- firmware/common/message.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/firmware/common/message.hpp b/firmware/common/message.hpp index 6a3cfe196..842561b3a 100644 --- a/firmware/common/message.hpp +++ b/firmware/common/message.hpp @@ -202,6 +202,8 @@ struct FSKConfiguration { size_t unstuffing_length; }; +static_assert(sizeof(FSKConfiguration) == (6 * 4), "sizeof(FSKConfiguration) is wild"); + class FSKConfigurationMessage : public Message { public: constexpr FSKConfigurationMessage(