From 49c77f09db94ff2e7a6b5f46fb8fcf9eeaaa3ace Mon Sep 17 00:00:00 2001 From: diffwireauto <330573775+diffwireauto@users.noreply.github.com> Date: Sat, 3 Oct 2026 23:36:28 -0400 Subject: [PATCH] fix(#765): clearer recovery log past the sync cap, and name CMD_GET_CONTACT_BY_KEY Found in the owner's hardware test: a manual refresh after the 3 automatic syncs logged "full sync 4 of 3", and the traffic log showed the by-key request as CODE_30. Log text only. Co-Authored-By: Claude Opus 5.5 --- lib/connector/meshcore_connector.dart | 7 +++++-- lib/services/ble_debug_log_service.dart | 2 ++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/connector/meshcore_connector.dart b/lib/connector/meshcore_connector.dart index 070fbf8a..c41c26f7 100644 --- a/lib/connector/meshcore_connector.dart +++ b/lib/connector/meshcore_connector.dart @@ -3960,10 +3960,13 @@ class MeshCoreConnector extends ChangeNotifier { return; } + final syncCount = _contactFullStreams <= contactSyncMaxFullStreams + ? 'full sync $_contactFullStreams of $contactSyncMaxFullStreams' + : 'full sync $_contactFullStreams, past the $contactSyncMaxFullStreams ' + 'automatic syncs; checking by key'; _appDebugLogService?.warn( 'Contact sync short: radio declared ${declared ?? 'no total'}, sent ' - '$received (full sync $_contactFullStreams of ' - '$contactSyncMaxFullStreams). Nothing removed.', + '$received ($syncCount). Nothing removed.', tag: 'ContactSync', ); // A user refresh during the by-key checks only adds what it delivered; diff --git a/lib/services/ble_debug_log_service.dart b/lib/services/ble_debug_log_service.dart index b4685f23..33f42ff2 100644 --- a/lib/services/ble_debug_log_service.dart +++ b/lib/services/ble_debug_log_service.dart @@ -167,6 +167,8 @@ class BleDebugLogService extends ChangeNotifier { return 'CMD_RESET_PATH'; case cmdRemoveContact: return 'CMD_REMOVE_CONTACT'; + case cmdGetContactByKey: + return 'CMD_GET_CONTACT_BY_KEY'; case cmdReboot: return 'CMD_REBOOT'; case cmdGetBattAndStorage: