Improve error message for unavailable RX characteristic in USB communication

This commit is contained in:
just_stuff_tm authored and just-stuff-tm committed 2026-03-05 02:25:05 -05:00
1 parent 612612795a
commit c041e05972
1 file changed
+1 -1
+1 -1
View File
@@ -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;