From 890fc894310eee3b8d88ee6533d8a669418e886c Mon Sep 17 00:00:00 2001 From: MarekZegare4 Date: Thu, 2 Jul 2026 12:06:08 +0200 Subject: [PATCH] fix(prefs): update NodePrefs size tripwire after page_order growth MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Growing page_order 11 → 13 bumped sizeof(NodePrefs) 2488 → 2496 (the 2 added bytes plus alignment padding to the next 8-byte boundary). Save/load/clamp and SCHEMA_SENTINEL were already updated; this syncs the static_assert. Verified with a host compile (fixed-width members → layout matches the target). Co-Authored-By: Claude Opus 4.8 --- examples/companion_radio/NodePrefs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/companion_radio/NodePrefs.h b/examples/companion_radio/NodePrefs.h index 54fd1206..97b47560 100644 --- a/examples/companion_radio/NodePrefs.h +++ b/examples/companion_radio/NodePrefs.h @@ -436,7 +436,7 @@ struct NodePrefs { // persisted to file // 3. clamp it on load (an upgrader's file lacks it → stray bytes) // 4. bump SCHEMA_SENTINEL's low byte // (Padding can also shift sizeof; a "false" trip just means re-check + rebump.) -static_assert(sizeof(NodePrefs) == 2488, +static_assert(sizeof(NodePrefs) == 2496, "NodePrefs layout changed — sync DataStore save/load + clamp, bump " "SCHEMA_SENTINEL, then update this size (see steps above).");