mirror of
https://github.com/letscontrolit/ESPEasy.git
synced 2026-07-28 04:07:47 +00:00
[ESP32-S2] Changed struct sizes for esp32-2.0.0-pre
This commit is contained in:
@@ -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>();
|
||||
|
||||
Reference in New Issue
Block a user