fix: simplify method call for writing data in UsbSerialService
This commit is contained in:
1 parent
6dfb7a4b69
commit
60e8ee0130
1 file changed
+1
-3
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user