fix: simplify method call for writing data in UsbSerialService

chore/offband-rebrand
zjs81 4 months ago
parent 6dfb7a4b69
commit 60e8ee0130

@ -259,9 +259,7 @@ class UsbSerialService {
}
if (_useAndroidUsbHost) {
try {
await _androidMethodChannel.invokeMethod<void>('write', {
'data': data,
});
await _androidMethodChannel.invokeMethod<void>('write', {'data': data});
} on PlatformException catch (error) {
throw StateError(error.message ?? error.code);
}

Loading…
Cancel
Save

Powered by TurnKey Linux.