From acf8066b5f7ded794a4beb14909629648bce44af Mon Sep 17 00:00:00 2001 From: Pelgraine Date: Sun, 12 Jul 2026 23:31:53 +1000 Subject: [PATCH] T-watch: add utc, tx power, path hash size selector behaviour gating for watch in main cpp for touch fix --- examples/companion_radio/main.cpp | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/examples/companion_radio/main.cpp b/examples/companion_radio/main.cpp index 115f3104..d8bb1259 100644 --- a/examples/companion_radio/main.cpp +++ b/examples/companion_radio/main.cpp @@ -1617,9 +1617,12 @@ static void lastHeardToggleContact() { if (ui_task.isOnSettingsScreen()) { SettingsScreen* ss = (SettingsScreen*)ui_task.getSettingsScreen(); #if defined(MECK_TWATCH) - // Watch: while editing the UTC offset, tap the upper half to increment - // and the lower half to decrement. Long-press saves. - if (ss && ss->isEditing() && ss->getCurrentRowType() == ROW_UTC_OFFSET) { + // Watch: while editing UTC offset, path hash size, or TX power, tap the + // upper half to increment and the lower half to decrement. Long-press saves. + if (ss && ss->isEditing() && + (ss->getCurrentRowType() == ROW_UTC_OFFSET || + ss->getCurrentRowType() == ROW_PATH_HASH_SIZE || + ss->getCurrentRowType() == ROW_TX_POWER)) { return (vy < 64) ? 'w' : 's'; } #endif @@ -2091,8 +2094,12 @@ static void lastHeardToggleContact() { SettingsScreen* ss = (SettingsScreen*)ui_task.getSettingsScreen(); if (ss) { #if defined(MECK_TWATCH) - // Watch: long-press while editing the UTC offset saves the value. - if (ss->isEditing() && ss->getCurrentRowType() == ROW_UTC_OFFSET) { + // Watch: long-press while editing UTC offset, path hash size, or TX + // power saves the value. + if (ss->isEditing() && + (ss->getCurrentRowType() == ROW_UTC_OFFSET || + ss->getCurrentRowType() == ROW_PATH_HASH_SIZE || + ss->getCurrentRowType() == ROW_TX_POWER)) { return '\r'; } #endif