mirror of
https://github.com/zjs81/meshcore-open.git
synced 2026-07-02 23:10:55 +10:00
Improve error message for unavailable RX characteristic in USB communication
This commit is contained in:
committed by
just-stuff-tm
parent
612612795a
commit
c041e05972
@@ -1196,7 +1196,7 @@ class MeshCoreConnector extends ChangeNotifier {
|
|||||||
await _usbSerialService.write(data);
|
await _usbSerialService.write(data);
|
||||||
} else {
|
} else {
|
||||||
if (_rxCharacteristic == null) {
|
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.
|
// Prefer write without response when supported; fall back to write with response.
|
||||||
final properties = _rxCharacteristic!.properties;
|
final properties = _rxCharacteristic!.properties;
|
||||||
|
|||||||
Reference in New Issue
Block a user