changeset 59:672c7adc8bc9

cp2102-decode-baudtab: works after a little fix
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 11 Sep 2023 20:38:51 +0000
parents 4890ded06a8b
children ae8075bcc029
files cp2102/decode_baudtab.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/cp2102/decode_baudtab.c	Mon Sep 11 20:33:26 2023 +0000
+++ b/cp2102/decode_baudtab.c	Mon Sep 11 20:38:51 2023 +0000
@@ -26,6 +26,7 @@
 		prescaler = dp[4];
 		sparebyte = dp[5];
 		baudrate = dp[6] | (dp[7] << 8) | (dp[8] << 16) | (dp[9] << 24);
+		dp += SIZE_BAUDRATE_CFG;
 		fprintf(outf, "baud-entry %2u: %7u = %04X, %04X, %u, %u",
 			entry, baudrate, baudgen, timegen, prescaler,
 			sparebyte);