From ab05cf8b3e8d07c5397e24b26f3a3cb4a8c6fca5 Mon Sep 17 00:00:00 2001 From: Ben Allfree Date: Sun, 22 Feb 2026 08:33:45 -0800 Subject: [PATCH] chrome BLE sync --- lib/connector/meshcore_connector.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/connector/meshcore_connector.dart b/lib/connector/meshcore_connector.dart index 8eacdab..c558171 100644 --- a/lib/connector/meshcore_connector.dart +++ b/lib/connector/meshcore_connector.dart @@ -891,8 +891,9 @@ class MeshCoreConnector extends ChangeNotifier { // We trigger it but don't await its completion to avoid blocking the connection flow. debugPrint('Web: Calling setNotifyValue(true) without awaiting'); // ignore: unawaited_futures - _txCharacteristic!.setNotifyValue(true).catchError((e) { + _txCharacteristic!.setNotifyValue(true, timeout: 2).catchError((e) { debugPrint('Web setNotifyValue error (ignoring): $e'); + return false; // catchError must return a bool to match Future }); // Give the browser a moment to process the underlying startNotifications call await Future.delayed(const Duration(milliseconds: 500));