mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-08-03 02:36:11 +00:00
fix(prefs): bump schema sentinel for keyboard_type field (PR #21)
keyboard_type was inserted into the append-only NodePrefs layout without bumping SCHEMA_SENTINEL, leaving it at 0xC0DE0019 — the same value plain main already uses without this field. A device already on that schema would silently misalign every field read after alarm_min once updated to a build containing this change. Bump to 0xC0DE001A and fix the migration comment's stale version label (it said 0xC0DE0018, which was already taken by the MAP home-page migration). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -351,7 +351,7 @@ struct NodePrefs { // persisted to file
|
||||
// adding/removing/reordering fields in DataStore::savePrefs/loadPrefsInt so
|
||||
// older saves are detected on load and skipped (zero-init defaults kept).
|
||||
// High 24 bits identify the file format; low byte is the schema revision.
|
||||
static const uint32_t SCHEMA_SENTINEL = 0xC0DE0019;
|
||||
static const uint32_t SCHEMA_SENTINEL = 0xC0DE001A;
|
||||
|
||||
// Bit-index for each home page. Used by page_order (entries store bit+1) and
|
||||
// by home_pages_mask. Single source of truth — both HomeScreen::pageBit/bitToPage
|
||||
|
||||
Reference in New Issue
Block a user