From 973e49e5e7b96abe107f99942a1c6644bf0f83e4 Mon Sep 17 00:00:00 2001 From: Hannes Winkler Date: Wed, 1 May 2024 15:38:07 +0200 Subject: [PATCH] linux_spidev: fix invalid type in isolate message --- packages/linux_spidev/lib/src/spidev.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/linux_spidev/lib/src/spidev.dart b/packages/linux_spidev/lib/src/spidev.dart index a159d21..cae9d11 100644 --- a/packages/linux_spidev/lib/src/spidev.dart +++ b/packages/linux_spidev/lib/src/spidev.dart @@ -394,7 +394,7 @@ void spiTransferExecutorEntry(Tuple2 channel) async { sendPort.send(Tuple3(transferId, null, null)); } on OSError catch (e) { - sendPort.send(Tuple3(transferId, e, StackTrace.current)); + sendPort.send(Tuple3(transferId, e, StackTrace.current)); } } else { throw StateError("Invalid packet received from receivePort in SpiTransferExecutor isolate: $untypedTransfer"); @@ -463,7 +463,7 @@ class SpiTransferExecutor { int _nextTransferId = 0; void _onIsolateData(dynamic untypedData) { - final data = untypedData as Tuple3; + final data = untypedData as Tuple3; final transferId = data.item1; final error = data.item2;