From f5b73bdf9c7fa1d05538b16875ad8cf3fe73aac0 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Fri, 12 Nov 2021 16:31:22 +0100 Subject: [PATCH] Fix ESP32-S2 compilation Fixed https://github.com/arendst/Tasmota/commit/568726be6f530147e0a679fdba19b70a9a40c06a --- tasmota/settings.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tasmota/settings.h b/tasmota/settings.h index de77a0390..419313774 100644 --- a/tasmota/settings.h +++ b/tasmota/settings.h @@ -763,7 +763,10 @@ typedef struct { uint32_t cfg_crc32; // FFC } TSettings; +#ifndef CONFIG_IDF_TARGET_ESP32S2 +// For the ESP32-S2 the settings area has been made larger than 4096 by accident in order to support more GPIO's static_assert(sizeof(TSettings) == 4096, "TSettings Size is not correct"); +#endif typedef struct { uint16_t valid; // 280 (RTC memory offset 100 - sizeof(RTCRBT))