Fix Cardputer delivery, live settings and power management

Keep selected chats bound to full contact keys and route keyboard channel sends through the active transport. Deliver accepted plain, room and Meshtext messages to local history and notifications once; disarm rejected sends and retries.

Use shared live radio settings, GPS acquisition and power-saving policy, screen timers and red night palette. Report save failures, preserve verified custom preferences, and guard display controls and shutdown.

Add executable sanitizer regressions for routing, retries, selection, storage faults, UI lifecycle and GPS. Both Companion builds and the shared T-Deck regression pass; no physical Cardputer testing performed.
This commit is contained in:
mikecarper committed 2026-10-27 22:59:26 -07:00
1 parent e5d5981e5e
commit 9a2211e85a
27 files changed
+1950 -346

No files matched your search

+6 -4
View File
@@ -24,8 +24,9 @@
#define MESHCORE_DISPLAY_TOKEN_JOIN(prefix, name) \
MESHCORE_DISPLAY_TOKEN_JOIN_INNER(prefix, name)
#if defined(DISPLAY_CLASS) \
&& !MESHCORE_DISPLAY_TOKEN_JOIN(MESHCORE_NULL_DISPLAY_CLASS_, DISPLAY_CLASS)
#if (defined(DISPLAY_CLASS) \
&& !MESHCORE_DISPLAY_TOKEN_JOIN(MESHCORE_NULL_DISPLAY_CLASS_, DISPLAY_CLASS)) \
|| CARDPUTER_ADV_UI
#define MESHCORE_HAS_REAL_DISPLAY 1
#endif
@@ -35,8 +36,9 @@
#define MESHCORE_HAS_EINK_DISPLAY 1
#endif
#if defined(DISPLAY_CLASS) \
&& MESHCORE_DISPLAY_TOKEN_JOIN(MESHCORE_COLOR_DISPLAY_CLASS_, DISPLAY_CLASS)
#if (defined(DISPLAY_CLASS) \
&& MESHCORE_DISPLAY_TOKEN_JOIN(MESHCORE_COLOR_DISPLAY_CLASS_, DISPLAY_CLASS)) \
|| CARDPUTER_ADV_UI
#define MESHCORE_HAS_COLOR_DISPLAY 1
#endif
+5
View File
@@ -106,6 +106,11 @@ bool loadDisplayPowerSettings(FILESYSTEM* fs, bool pairing_supported, bool wake_
DisplayPowerPrefs prefs;
prefs.wake_on_boot = wake_on_boot;
if (pairing_supported) prefs.battery.mode = prefs.usb.mode = DisplayMode::ButtonPairing;
#if CARDPUTER_ADV_UI
// Preserve the keyboard UI's timed message wake on a fresh installation.
// A saved profile below remains authoritative, including explicit off.
prefs.battery.mode = prefs.usb.mode = DisplayMode::Automatic;
#endif
displayPowerPrefs() = prefs;
#ifdef MESHCORE_HAS_REAL_DISPLAY
if (!fs) return false;