FreeCalypso > hg > gsm-codec-lib
diff frtest/dlcap-parse.c @ 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 | 80c93ef82a51 |
children | 251aed72925e |
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) {