Fix ESP32-S2 compilation

Fixed 568726be6f
This commit is contained in:
Theo Arends 2021-11-12 16:31:22 +01:00
parent dbd7d29765
commit f5b73bdf9c
1 changed files with 3 additions and 0 deletions

View File

@ -763,7 +763,10 @@ typedef struct {
uint32_t cfg_crc32; // FFC uint32_t cfg_crc32; // FFC
} TSettings; } 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"); static_assert(sizeof(TSettings) == 4096, "TSettings Size is not correct");
#endif
typedef struct { typedef struct {
uint16_t valid; // 280 (RTC memory offset 100 - sizeof(RTCRBT)) uint16_t valid; // 280 (RTC memory offset 100 - sizeof(RTCRBT))