Commit Graph
1902 Commits
Author SHA1 Message Date
Kaj Schittecat 41a3f19942 Merge #860 (kkazakov): EN/BG chat tag no longer overlaps the GPS icon 2026-11-16 09:20:40 +01:00
Krasimir Kazakov cd9557d032 touch: give the chat header keyboard tag its own slot
updateGlobalStatusBar parked the EN/BG tag against the clock's left edge
before chatHeaderApply ran, which is exactly where the header puts the GPS
glyph. In an open chat with a second layout enabled and GPS on, the tag
painted over the glyph (reported on the L2 Pro and the T-Deck).

The one-row chat header now lays out the tag left of the clock, steps the
GPS glyph left of the tag and keeps the title clear of both. It also owns
the tag's placement for the whole tick, so the tag is no longer aligned
against the non-chat centred clock first: that is what made it flash in
the middle of the bar for a tick before it jumped to the clock.

Tested on the Wio Tracker L2 with BG active and GPS on in a channel chat:
no overlap, no mid-bar flash. Builds for T-Deck, T-Deck Pro and M9; host
tests pass (58 pass, 0 fail, 3 skip).

Signed-off-by: Krasimir Kazakov <kkazakov@gmail.com>
2026-11-15 20:31:26 +02:00
Kaj SchittecatandClaude Opus 5.5 a33e77add0 release notes: beta_105
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
beta_105
2026-11-14 16:18:50 +01:00
Kaj SchittecatandClaude Opus 5.5 b0d6b8eb29 follow-up #848: the two-row header's re-pack call is compiled out on round-cornered boards (P4 build)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 16:08:29 +01:00
Kaj SchittecatandClaude Opus 5.5 8128481e9b follow-up #848: gate the V4 portrait two-row bar on CAP_TWO_ROW_BAR_PORTRAIT, not the board name
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 15:50:31 +01:00
Kaj Schittecat 5d7b0333f6 Merge PR #848: touch(v4): portrait header and control panel, sensors screens layout, dead-tap fix (#833, #836) 2026-11-14 15:50:13 +01:00
Kaj SchittecatandClaude Opus 5.5 c8575a0556 follow-up #841: compile the FatFs C sources in prep, Apple clang refuses -std=c++17 with -x c
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 15:50:00 +01:00
Kaj Schittecat 405f533817 Merge PR #841: Support >2GB .pmtiles files 2026-11-14 15:49:22 +01:00
Kaj SchittecatandClaude Opus 5.5 0c2c9383b2 follow-up #843: language key only on the letter pages, none on the V4 compact maps, left out when only English is enabled
On the 1# page the language key's index is another key (space, OK, an arrow),
which switched the language instead. The V4's compact maps typed the word
LANG. With only English enabled the key was an inert EN that narrowed the
space bar on every board; it is now left out and its width goes to space.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 15:49:17 +01:00
Kaj Schittecat 43be126453 Merge PR #843: touch: language switch is a real key; every deck matches English 2026-11-14 15:48:05 +01:00
Kaj Schittecat ca97bcd1bc Merge PR #850: lvgl: drop a deleted scroll_obj from the input device 2026-11-14 15:47:58 +01:00
Kaj SchittecatandClaude Opus 5.5 1fe34ed8b2 follow-up #832: production M9 battery EMA snaps 3 s after a charger flip, like the tested smoother
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 15:47:52 +01:00
Kaj Schittecat 55b874190c Merge PR #832: m9: guard 3% battery switch-off against LoRa TX sag and 20 s hold 2026-11-14 15:47:21 +01:00
Kaj SchittecatandClaude Opus 5.5 aa5ba95e40 touch(nav): a same-row neighbour is beside the cursor, not below it
On the ThinkNode M9 Home (benanderson, Discord, beta_103) the Heard and
Unread widgets could not be reached with the d-pad. The clock card is
taller than the row of toggles beside it and its centre sits 2 px lower,
so the spatial step counted it as "below" every toggle with a zero gap
and took every Down there. Likewise Left from a button could jump up to
one rows higher that merely overlapped it horizontally. A candidate that
overlaps on one axis and is clear on the other now lies only along that
other axis; diagonal and overlapping candidates still go by their
centres. Host test gains the M9 Home geometry.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 15:47:00 +01:00
Kaj Schittecat e4929de9c9 Merge origin/main (site toggle fix) 2026-11-14 15:43:53 +01:00
Kaj SchittecatandClaude Opus 5.5 93984dee27 site: the Stable/Beta toggle switches every board, not only the T-Deck and V4
Seventeen boards (M9, Pagers, T-Deck Pro/Max, P4s, CrowPanels, V4-R8 and
more) were pinned to the beta feed although stable beta_101 carries them,
so Stable, the default, flashed them with the newest beta. A pinned board
now follows the toggle as soon as the stable feed has its manifest (checked
at page load), the extra P4 variants come from the selected channel's
archive, and the "beta only until the next stable" notes are gone.
Reported by life_ender on Discord.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 15:43:32 +01:00
Kaj SchittecatandClaude Opus 5.5 1408706a3d site: the Stable/Beta toggle switches every board, not only the T-Deck and V4
Seventeen boards (M9, Pagers, T-Deck Pro/Max, P4s, CrowPanels, V4-R8 and
more) were pinned to the beta feed although stable beta_101 carries them,
so Stable, the default, flashed them with the newest beta. A pinned board
now follows the toggle as soon as the stable feed has its manifest (checked
at page load), the extra P4 variants come from the selected channel's
archive, and the "beta only until the next stable" notes are gone.
Reported by life_ender on Discord.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 15:43:20 +01:00
Kaj SchittecatandClaude Opus 5.5 75ecd80642 follow-up #830 #851: drop the unused bus-level reads, no em dash in DEVICES.md
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 15:41:25 +01:00
Kaj Schittecat 3d9ea7c7a9 Merge PR #852: touch: any Bluetooth keyboard key wakes the screen 2026-11-14 15:41:14 +01:00
Kaj Schittecat a29b1708d6 Merge PR #851: touch: sleep the screen on a wake-button tap 2026-11-14 15:41:14 +01:00
Kaj Schittecat b95e57c021 Merge PR #830: fix(t-deck): reinit i2c in radio_init, before RTC probing is done 2026-11-14 15:41:13 +01:00
Kaj Schittecat fad1d5e52a Merge PR #838: touch(T-Deck Pro/Max): retry the CST3530 init so one failed write does not disable touch 2026-11-14 15:41:13 +01:00
Kaj SchittecatandClaude Opus 5.5 5ac1b0765e release notes: beta_104
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
beta_104
2026-11-14 14:34:33 +01:00
Kaj SchittecatandClaude Opus 5.5 9520e2e498 m9: the USB power sense on GPIO1 is active-LOW (#842, #853)
#826 read 5V_TEST as active-HIGH, so since beta_103 every ThinkNode M9
showed charging on battery and battery on USB. The screensaver stayed up
on battery as if on power, and the 3% switch-off never fired on battery.
GPIO1 reads LOW while USB power is present, as in Meshtastic's M9
variant (EXT_PWR_DETECT 1, EXT_PWR_DETECT_VALUE LOW).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 14:34:25 +01:00
Krasimir Kazakov 630d4d98d7 touch: any Bluetooth keyboard key wakes the screen
A modifier-only report (Ctrl, Alt, Shift, GUI) carries no key in keys[6], so pressKey() never ran and the UI never saw the key. The screen stayed dark until a letter or arrow was pressed.

Track any new key or modifier as activity and let the UI light the screen (or reveal the lock screen) once the key has been dispatched. The waking key stays swallowed, as it is for every other keyboard; the next key types. Console mode wakes the same way.

Tested on the Wio Tracker L2 with a paired BLE keyboard.

Signed-off-by: Krasimir Kazakov <kkazakov@gmail.com>
2026-11-13 18:21:35 +02:00
Krasimir Kazakov 4cc96323bc touch: sleep the screen on a wake-button tap
The Wio Tracker L2's wake button only woke the panel; tapping it on a lit
screen did nothing, so the board had no button to put itself back to sleep.
Sleep the screen on the button's release when the press began on a lit,
unlocked screen. Acting on the release, and only when the press began lit,
keeps a press that WAKES from being slept again by its own release, and lets
the two-second lock hold run without blanking the panel under its
unlock-progress hint.

This is the soft sleep (backlight off, no manual lock), so a touch or the next
tap wakes it, while the hold stays the only way into the hard lock. The
T-Display P4 shares the branch and gets the same toggle; DEVICES.md now says
so for both boards.

Tested on the Wio Tracker L2.

Signed-off-by: Krasimir Kazakov <kkazakov@gmail.com>
2026-11-13 18:18:31 +02:00
Martin Kremers eac02c2161 lvgl: fix use-after-free on deleted scroll_obj and pending async deletes
Fixes the beta_102 T-Deck LoadProhibited panic and a related async bug.

scroll_obj: LVGL 8.4 resets an indev only for act_obj/last_obj. After
lv_indev_wait_release() (via popupClose()), scroll_obj survives for the
throw. A sheet closed mid-scroll leaves it dangling, and the next press
crashes in _lv_indev_scroll_handler. patch_lvgl_scroll_uaf.py also
resets the indev on scroll_obj delete, as LVGL 9 does. SCROLL/SCROLL_END
handlers must still not delete synchronously (throw handler skips
reset_query).

async del: LVGL 8.4 never cancels queued lv_obj_del_async(), so freed
objects get deleted again. patch_lvgl_async_del.py cancels pending
deletes in obj_del_core() and frees info/timer before the call in
lv_async_timer_cb(). Both halves are required, or a double free occurs.

Patches are idempotent, fail closed on version drift, and are wired
into all PlatformIO, Tanmatsu, P4 and web builds. ASan tests in
test/lvgl_scroll_uaf and test/lvgl_async_del_uaf: stock LVGL fails,
patched LVGL is clean.
2026-11-13 16:07:40 +01:00
Michael A. CojocariandCopilot 137db6d4f1 touch(v4): lean portrait control panel; sensors screens stack instead of overlapping (#833)
- Control panel, V4/R8 portrait: hide the battery row and the Expansion Kit env
  line; both are shown elsewhere (status bar, Sensors tab, Home widget). They
  overlapped the chips on the 240 px width.
- Sensors tab: flex column instead of fixed y offsets, so wrapped values push
  the charts and sections down rather than running into them. Charts sit in a
  padded host so the Y-axis tick labels (drawn outside the chart box) stay on
  screen; the refresh hides the host so an empty chart leaves no gap.
- Local sensors page: readout/chart/legend stack in the scrolling card; the
  "Open mesh console" button sits fixed below the card instead of covering the
  readout.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-11-12 17:13:40 -05:00
Michael A. CojocariandCopilot d6b9eef9f8 touch: clear LVGL's stuck scroll latch that killed every tap (#836)
lv_indev_wait_release() drops last_obj but keeps scroll_obj while a list is
still coasting. A press in that window resets scroll_dir to NONE but keeps
scroll_obj; the throw handler then returns early forever, so every release
skipped CLICKED (rows highlighted, nothing opened). Seen on the Heltec V4 in
landscape, where the swipe abort fires mid-scroll. Clear the pair in
lvglTouchRead: scroll_dir is always set with scroll_obj, so it only ever
means the dead latch.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-11-12 15:27:27 -05:00
Michael A. CojocariandCopilot 25c8754193 touch(v4): portrait two-row header, settings clock/back, control panel text (#833)
- Portrait V4 / V4-R8: the T-Deck Pro's two-row header (top row as on every
  page, chat back/avatar/name or settings/tool "< Title" on the second row),
  switched at runtime so the chat keyboard's landscape keeps the old header.
- Clock at the far left of the two-row bar; the overlap guard no longer
  re-applies the top-row translate (it lifted the clock off the screen).
- Settings Back on the second row fires on touch-down, like chat/app pages.
- Control panel: GPS / Expansion Kit lines clamped to one line (LONG_DOT
  wrapped under the chips); the chip grid sizes to the measured text.

Tested on Heltec V4 TFT + Expansion Kit V1 (portrait). Builds: V4, V4-R8,
T-Deck Pro v1.0.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-11-12 14:54:02 -05:00
Krasimir Kazakov 536cf5307e touch: language switch is a real key; every deck matches English
The on-screen language switch was a 32x26 button floating on lv_layer_top
above the keyboard, and the Cyrillic/Greek/Arabic decks were still on the old
10-column shape: their control row went through KC(), which put the width
multiplier in the flag bits. KC(1) is HIDDEN and KC(4) is DISABLED, so "1#",
the OK key and the arrows were invisible and the space bar was greyed out and
dead; the shift key was LV_SYMBOL_UP, which lv_keyboard does not handle by
design (it switches case on the literal "ABC"/"abc" keys).

- Width goes into the low 3 bits lv_btnmatrix reads; KC() is gone.
- BG, RU, UK, SR, EL and AR use the English deck: 1# + letters + backspace,
  ABC/abc + letters + enter, a letter row padded with the language's own
  punctuation, and the same bottom row as English.
- Every layout's bottom row carries a real language key left of space, showing
  the active layout's code. Tapping it cycles and persists exactly like the
  floating button did; the floating button remains on the V4, whose compact
  240 px maps are built separately and have no room for it.
- Static asserts pin every map to its control array. A mismatch silently
  shifts widths and flags onto the wrong keys, which is how the old KC() bug
  survived: the map still had the right number of labels.

Signed-off-by: Krasimir Kazakov <kkazakov@gmail.com>
2026-11-12 20:03:05 +02:00
TinkeringDao cc6ae5900a fix(m9): prevent TX sag and 20s publish hold from triggering false 3% shutoff
- On HAS_THINKNODE_M9, only snap batteryMvSampled()'s EMA on hardware
  charger state transitions (GPIO1 5V_TEST / GPIO8 DONE#) rather than
  >70 mV voltage steps, so a transient IR drop during a +22 dBm LR1110
  transmission is smoothed by the EMA instead of snapping downward.
- Sample batteryMvSampled() directly in pagerLowBatteryTick() rather
  than batteryMvSmoothed()'s 20 s held value, since the 3-read (6 s)
  debounce plus 10 s countdown (16 s total) is shorter than the 20 s
  hold window and would otherwise repeat a single sagged reading.

Signed-off-by: TinkeringDao <203040288+TinkeringDao@users.noreply.github.com>
2026-11-12 02:14:17 +01:00
Michal Demin 4d9c6f72e3 fix(t-deck): reinit i2c in radio_init, before RTC probing is done 2026-11-11 22:33:01 +01:00
Kaj SchittecatandClaude Opus 5.5 89fb0c0c47 site: videos skip list adds the Ham Radio Tube video (not about wadamesh)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 22:27:59 +01:00
Kaj SchittecatandClaude Opus 5.5 27e8a6b936 site: community videos come from videos.json, 8 new videos
The homepage list moves out of index.html into deploy/site/videos.json:
"show" renders newest first, "skip" keeps the ones turned down so a
later YouTube check does not suggest them again. Adds EmComm Solutions
(TAK), Signal Trek (ThinkNode M9), KDHD Stuff (Wio Tracker L2 Pro and
T-Display P4), Doc Cool, TEXIT RAIDER (Tanmatsu), LB5JJ and
AlpineRadioWaves.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 22:23:52 +01:00
Kaj SchittecatandClaude Opus 5.5 a5febb09d4 docs: emoji pack guide and download, beta_103 features in the user guide
The SD emoji pack (#616) had no way in for anyone without the build
scripts. The full pack (1,345 emoji with flags, built with
gen-emoji-pack.py --all, check-emoji-pack.py PASS) is now served at
wadamesh.com/emoji/emoji.pack, with an install guide and the boards it
runs on. The guide also covers the Chats unread chip, V4-R8 orientation
with the keep prompt, the low battery warning, the M9 motion switches,
exFAT cards and the Cyberspace app.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 21:06:06 +01:00
CarpeNoctemandCopilot fdb6a785ff touch(T-Deck Pro/Max): retry the CST3530 init so one failed write does not disable touch
initCst3530() returns false if any of its five I2C writes is NACKed, and
begin() then left _touch_ready false, so getTouchPoint() never polled and
touch stayed dead until the next reboot even though the controller had
answered the probe. Retry the sequence up to three times and keep touch
enabled regardless, since every read is already checked.

Fixes CarpeNoctem/wadamesh#2

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: CarpeNoctem <cryptomax@pm.me>
2026-11-12 04:38:18 +11:00
Kaj SchittecatandClaude Opus 5.5 44fd5689f1 release notes: beta_103, the emoji pack is not on the Pager
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
beta_103
2026-11-11 18:33:11 +01:00
Kaj SchittecatandClaude Opus 5.5 22314c74a9 touch: leave the SD emoji pack out of the T-LoRa Pager, whose app slot is full
The tagged beta_103 Pager image overflowed its 4,063,232-byte slot by 2 KB.
Without the pack the LR1121 image has 5 KB to spare. The Pager never had the
pack, so nothing is taken away.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 18:33:02 +01:00
Kaj SchittecatandClaude Opus 5.5 513e2a8a3a release notes: beta_103
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 18:22:55 +01:00
Kaj SchittecatandClaude Opus 5.5 4946f52d46 host tests: test_m9_board reads GPS Compass 1.1, where the heading fix lives
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 18:21:26 +01:00
Kaj SchittecatandClaude Opus 5.5 acde9730be touch: V4-R8 screen rotation, with a Keep prompt that falls back to portrait
The first boot in a landscape asks "Keep this orientation?" with one Keep
button in a corner and a 15 s countdown. Keep stores the choice; no tap, or a
restart before one, goes back to portrait, so a touch map that does not fit a
unit can never leave it stuck. Asked for on Discord by e4m7g6.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 17:11:25 +01:00
Kaj SchittecatandClaude Opus 5.5 4698b19a56 touch: File Transfer shows a progress bar, the share done and the time left
Asked for on Discord by benanderson. The time left uses the rate seen since the
transfer started, once it has run two seconds. Language store v33 snapshot
refreshed with the two new strings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 16:40:26 +01:00
Kaj SchittecatandClaude Opus 5.5 8a51a29163 apps: GPS Compass 1.1 carries #826's level-heading fix; 1.0 stays as published
The flat (no accelerometer) heading now uses the same axes as the tilt-compensated
one. Changing 1.0 in place would never reach a device that already has it. The apps
page regen also lists Cyberspace from #788.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 15:25:00 +01:00
Kaj SchittecatandClaude Opus 5.5 2e71e5b512 Merge #826: ThinkNode M9 board init, charger sense, 20 MHz SD, IMU/compass, LR1110 wrapper
Language rows from both sides kept.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 15:23:32 +01:00
TinkeringDao 63f40f27ed fix(m9): hardware init, charger sense, SD clock, IMU/compass, and LR1110 wrapper
Scope ThinkNode M9 board support and UI integration cleanly off main:
- variants/thinknode_m9: move M9LR1110Wrapper.h under variants/thinknode_m9 (matching Pager's CustomLR1121Wrapper.h pattern without shadowing core RadioLibWrappers.h) and calibrate LR1110 from STDBY_RC per Semtech SWDR001
- variants/thinknode_m9: 3-state USB VBUS + LGS4056HDA DONE# charger sense, ADC2 Wi-Fi contention filter, 20 MHz SD SPI clock, SPI CS pre-park, GPIO46 key LED mirror, deep-sleep wake/isolation, QMI8658A IMU gestures, MMC5603NJ auto-SR heading, and L76K GPS wake/ESD pin release
- src/main.cpp, DataStore.cpp, MyMesh.cpp, HardwareRtcClock.cpp, WadaNmeaLocationProvider.h, UITask.cpp: gate all M9/LR1110 paths under HAS_THINKNODE_M9 / HAS_M9_IMU / HAS_M9_KEYBOARD / USE_LR1110 so non-M9 targets retain identical RAM, flash, and SPIFFS behavior
- deploy/apps/lang/*.lang & test/test_m9_board.cpp: add .lang entries (leaving generated i18n_builtin.h untouched) and host unit tests for M9 board peripherals
2026-11-11 14:07:47 +01:00
Kaj SchittecatandClaude Opus 5.5 66315eb7e9 lua: http_get, http_post and request start the network worker themselves
All three run on the tile worker, which exists only once the map, the Store or
the update check has started it. An app opened from its launcher after a
reboot queued its fetch and never got a callback. Found on the T-Deck with
#788's request(); the older calls had the same gap.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 12:23:47 +01:00
Kaj SchittecatandClaude Opus 5.5 010b675ee5 idf: exFAT builds on the IDF boards; deflated emoji carry #616's sequences
- patch_idf_fatfs_exfat.py also defines FF_USE_LABEL as 0 when sdkconfig leaves
  CONFIG_FATFS_USE_LABEL out: exFAT's dir_read() tests it in plain C, so the
  Tanmatsu, T-Display P4 and CrowPanel P4 builds stopped at ff.c with #812.
- gen-emoji-deflated.py emits the kSequences table and emoji_deflated.cpp
  defines emojiGlyphSequenceLookup, which #616 calls; the Tanmatsu failed to link.
- test_emoji_deflated checks every sequence against the raw table.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 12:01:30 +01:00
Kaj SchittecatandClaude Opus 5.5 838280ea24 apps: language store v33 (Chats filter, emoji tab names), builtin table regenerated
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 11:37:55 +01:00
Kaj SchittecatandClaude Opus 5.5 cdfd383dfe host tests: build test_lua_json (#788) against the Lua core
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 11:36:20 +01:00