From c041e0597292ba67bc4daec12487ceff084388af Mon Sep 17 00:00:00 2001 From: just_stuff_tm <133525672+just-stuff-tm@users.noreply.github.com> Date: Mon, 2 Mar 2026 03:39:21 -0500 Subject: [PATCH] Improve error message for unavailable RX characteristic in USB communication --- lib/connector/meshcore_connector.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/connector/meshcore_connector.dart b/lib/connector/meshcore_connector.dart index 9e0eff6..39a34f2 100644 --- a/lib/connector/meshcore_connector.dart +++ b/lib/connector/meshcore_connector.dart @@ -1196,7 +1196,7 @@ class MeshCoreConnector extends ChangeNotifier { await _usbSerialService.write(data); } else { if (_rxCharacteristic == null) { - throw Exception("MeshCore RX characteristic does not support write"); + throw Exception("MeshCore RX characteristic not available"); } // Prefer write without response when supported; fall back to write with response. final properties = _rxCharacteristic!.properties;