Commit Graph
6 Commits
Author SHA1 Message Date
Kaj SchittecatandClaude Opus 5 2a8b62c6a7 Merge PR #375: Day and Night themes (#296)
oumike. A firmware-wide appearance setting: Night stays the default and renders
exactly as before, Day is a low-glare light palette with its own semantic roles
for text, panels, fields, borders, controls, focus, charts, status colours and
chat surfaces. Selecting a mode restarts, so every LVGL object is rebuilt from
one coherent palette rather than half-repainted. There is a Night/Day selector
in Settings, Display, the Control Center Theme chip is now a direct toggle whose
sun/moon icon shows the active mode, and the standalone console UI has a
matching Day palette.

Main already carried the palette scaffolding for this, pinned to Night behind a
comment saying it was waiting on this branch, so the merge mostly replaces those
stubs with the real thing.

The prefs schema needed care. The branch appended theme_mode as v54, but v54 and
v55 were taken by boot_wifi_time/boot_wifi_open and loud_alerts before this
merged, so the field moves to the tail behind them and the version becomes v56,
with the trailing-field assert and the migration step moved to match. A packed
struct read back at the wrong offsets is the failure this schema's asserts exist
to prevent, so the invariants from both sides are kept rather than one replacing
the other.

That also surfaced a stale test: the v53 case asserted that v53 plus exactly two
bytes was the whole struct, which stopped being true when loud_alerts landed and
was not caught because the host test was not run then. It now counts every byte
appended since and asserts the new fields come back at their defaults. The
schema host tests pass. While there, the size comment said "about 500 bytes";
the struct is 114.

Built on all nine S3 envs and both ESP32-P4 targets.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-04 09:11:54 +02:00
Kaj SchittecatandClaude Opus 5 c625d38244 Merge #384 (DM timestamps), #385 (M9 battery), #386 (hardware RTC), and fix the P4 link
oumike's #384 closes #374: MeshCore seeds _txt_last_ts from an unrestricted
random uint32 and sendMessage() then raises the real RTC timestamp above it, so
outbound direct messages carried future dates on most boots. Patched in the
vendored core, fail-closed and idempotent.

#386 closes #383: hardware RTC for the Pager's PCF85063A and the M9's PCF8563
with validation on both sides, time retained through a full power-off, and an
opt-in cold-boot Wi-Fi time sync. Prefs schema to v54, appended at the tail with
the assert updated.

cvhviz's #385 makes the M9's battery saver reachable at all (the machinery was
wired but the only enable switch was compiled for two other boards), fixes
GPS-off leakage, and enlarges the GPS UART ring mid-session.

Two build problems, neither visible to the authors:

  - #384 wires its core patch into the IDF builds as a fail-closed VERIFY, and
    the vendored copy in this checkout predated it. Applying the same patch step
    fixes it; the error already said to run fetch-deps.sh, which is the right
    design.
  - #385 calls gpsEnsureBigRxRing() from UITask.cpp and MyMesh.cpp, which every
    target compiles, while the definition is in src/main.cpp, which the two
    ESP32-P4 targets never compile. Both P4 builds failed to link. A no-op
    definition for those boards lives in UITask.cpp now, which is the standing
    rule for anything shared between the UI and the Arduino main. A no-op is
    honest here: neither P4 drives GPS through Serial1.

Built on all eight S3 envs and both ESP32-P4 targets.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-03 23:28:37 +02:00
Kaj SchittecatandClaude Opus 5 d33e5dec31 Merge cvhviz's M9 fix series (#354, #357, #358, #359, #360, #365)
The one that matters most is #354: tileCacheRemove() was written for the
firmware's own LittleFS cache but resolves through s_tile_fs, which is
re-pointed at the SD card root on every board that caches tiles there. So it
was calling SD.remove() on the user's own offline map pack, permanently, for
every queued tile whose .jpg happened to be absent. Gated to the internal
partition now.

The rest: remount through the full ladder after an in-device format (#359),
live labels no longer overlap the rows beneath (#357), hidden and inert widgets
stay out of the d-pad focus group (#358), keypress work is attributed in the
stall ring (#360), and GPS acquisition is measured from when it started rather
than when you looked (#365).

Built on all eight S3 envs.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-01 10:35:04 +02:00
Michael A. Cojocari 952075a22e Day/Night 2026-08-31 09:37:45 -04:00
Kaj SchittecatandClaude Opus 5 41c7b94a1d keyboard: a way out of a wrong protocol guess that does not need the keyboard (#351)
Vybo reports no change in beta_73. The runtime demotion I added is not firing on
his device, and I still do not have the one serial line that would say why. So
rather than guess a third time, give him a switch.

Settings > Keyboard > "Older keyboard protocol" skips raw detection entirely and
uses the protocol every T-Deck controller understands. The point is that it is
reachable BY TOUCH: when detection guesses wrong the keyboard types the wrong
letters, so any remedy that needs the keyboard is not a remedy. It applies
immediately, without a reboot, because the driver re-reads the flag every poll
and will drop out of raw mode on the spot.

The cost of turning it on is modifier latching, which a controller that needs
this switch cannot do anyway.

Schema goes to v53, appended at the tail with the existing static_assert
updated to point at the new last field.

This does not replace finding the real cause; it stops people being stuck while
I do. Automatic detection is unchanged and still the default.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-28 18:36:42 +02:00
Kaj SchittecatandClaude Opus 5 fff611692f touch: show the hop hash beside the repeater name in a route (#348, #347)
jrote1: a route lists resolved repeater names, and when a name is wrong or two
repeaters share one there is nothing left to identify the hop by. The hash is
what the node is actually keyed by on the wire, so it is the part that stays
true exactly when you are reading a route to work out where a message went.

Each hop now reads "3A Repeater Name" rather than just the name. The unresolved
case is unchanged, since it was already showing the hash.

Also pisti87's two corrections (#347): "Known regions" had never been
translated, and the Bluetooth pairing hint gets his shorter wording. Languages
to v21.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-28 17:37:24 +02:00