[ESP32-S2] Changed struct sizes for esp32-2.0.0-pre

This commit is contained in:
TD-er
2021-07-26 20:16:22 +02:00
parent fea939b423
commit 501055bcf1
+15
View File
@@ -82,18 +82,33 @@ void run_compiletime_checks() {
check_size<NotificationSettingsStruct, 996u>();
#endif
check_size<ExtraTaskSettingsStruct, 472u>();
#ifdef ESP32S2
// FIXME TD-er: Why is this larger?
check_size<EventStruct, 116u>(); // Is not stored
#else
check_size<EventStruct, 96u>(); // Is not stored
#endif
// LogStruct is mainly dependent on the number of lines.
// Has to be round up to multiple of 4.
#ifdef ESP32S2
const unsigned int LogStructSize = 644; // FIXME TD-er: Why is this larger?
#else
const unsigned int LogStructSize = ((12u + 17 * LOG_STRUCT_MESSAGE_LINES) + 3) & ~3;
#endif
check_size<LogStruct, LogStructSize>(); // Is not stored
check_size<DeviceStruct, 8u>(); // Is not stored
check_size<ProtocolStruct, 6u>();
#ifdef USES_NOTIFIER
check_size<NotificationStruct, 3u>();
#endif
#ifdef ESP32S2
check_size<NodeStruct, 32u>(); // FIXME TD-er: Why is this larger?
#else
check_size<NodeStruct, 28u>();
#endif
check_size<systemTimerStruct, 24u>();
check_size<RTCStruct, 32u>();
check_size<portStatusStruct, 6u>();