changeset 101:53d4eab866b8

iothread: be explicit about ACK/NAK comparison Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
author Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
date Fri, 22 Sep 2023 09:50:41 -0400
parents 2cb2ec63a098
children 3c514e476693
files iothread.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/iothread.c	Wed Sep 13 10:36:23 2023 -0400
+++ b/iothread.c	Fri Sep 22 09:50:41 2023 -0400
@@ -203,7 +203,7 @@
 
 	if ((mkmsgid(hdr.class, hdr.id) == UBX_ACK_ACK) ||
 	    (mkmsgid(hdr.class, hdr.id) == UBX_ACK_NAK))
-		notify_ubx_ack(raw, hdr.len, hdr.id);
+		notify_ubx_ack(raw, hdr.len, hdr.id == 0x01);
 
 	if (mkmsgid(hdr.class, hdr.id) == UBX_NAV_PVT)
 		notify_chrony_sock(raw, hdr.len, start_time);