From 559426b47e9d93929e5ac3a7aa61427c32a7a9ce Mon Sep 17 00:00:00 2001 From: Gold87 <91761103+Gold872@users.noreply.github.com> Date: Tue, 12 Nov 2024 21:26:58 -0500 Subject: [PATCH] Added debug message for writing RTCM data --- lib/src/devices/gps.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/src/devices/gps.dart b/lib/src/devices/gps.dart index 0ef07cd..c1aa1db 100644 --- a/lib/src/devices/gps.dart +++ b/lib/src/devices/gps.dart @@ -98,7 +98,9 @@ class GpsReader extends Service { return; } - device.write(Uint8List.fromList(message.rtkMessage)); + final rtkMessage = Uint8List.fromList(message.rtkMessage); + logger.debug("Writing RTK Message", body: "Writing a ${rtkMessage.lengthInBytes} byte RTCM packet to serial"); + device.write(rtkMessage); } @override