changeset 54:2855330ab96f

simsniff-dec: bug in PPS decoder
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 03 Oct 2023 23:32:43 +0000
parents 737579209153
children 5268246520de
files sw/sniff-dec/pps.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sw/sniff-dec/pps.c	Tue Oct 03 19:35:29 2023 +0000
+++ b/sw/sniff-dec/pps.c	Tue Oct 03 23:32:43 2023 +0000
@@ -51,7 +51,7 @@
 		substate = SUBST_PPS3;
 	}
 	if (substate == SUBST_PPS3) {
-		if (pps_bytes[2] & 0x40)
+		if (pps_bytes[1] & 0x40)
 			return;
 		substate = SUBST_PCK;
 	}