From 568726be6f530147e0a679fdba19b70a9a40c06a Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Thu, 11 Nov 2021 11:20:56 +0100 Subject: [PATCH] Add TSettings assert --- tasmota/settings.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tasmota/settings.h b/tasmota/settings.h index b1cefb803..de77a0390 100644 --- a/tasmota/settings.h +++ b/tasmota/settings.h @@ -763,6 +763,8 @@ typedef struct { uint32_t cfg_crc32; // FFC } TSettings; +static_assert(sizeof(TSettings) == 4096, "TSettings Size is not correct"); + typedef struct { uint16_t valid; // 280 (RTC memory offset 100 - sizeof(RTCRBT)) uint8_t fast_reboot_count; // 282