changeset 178:5fe0b3eb35c1

gsmfr-dlcap-parse: also parse hex output from fc-vm2hex
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 27 Dec 2022 06:44:29 +0000
parents ecce11a4890c
children 6e39fc0134da
files frtest/dlcap-parse.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/frtest/dlcap-parse.c	Tue Dec 27 01:37:20 2022 +0000
+++ b/frtest/dlcap-parse.c	Tue Dec 27 06:44:29 2022 +0000
@@ -76,6 +76,11 @@
 		/* support both old and new formats */
 		if (isxdigit(linebuf[0]) && isxdigit(linebuf[1]) &&
 		    isxdigit(linebuf[2]) && isxdigit(linebuf[3])) {
+			/* also support parsing output from fc-vm2hex */
+			if (linebuf[4] == '\n') {
+				printf("#%d: fn=0 DSP %.4s\n", lineno, linebuf);
+				continue;
+			}
 			rc = parse_dlcap_common(linebuf, status_words,
 						tidsp_bytes);
 			if (rc < 0) {