FreeCalypso > hg > freecalypso-sw
changeset 1010:658fe6f1880f
rvinterf/lowlevel: handle TCH packet type in rvinterf and rvtdump
author | Mychaela Falconia <falcon@ivan.Harhan.ORG> |
---|---|
date | Sun, 20 Mar 2016 20:35:17 +0000 |
parents | 009d5bf2ff4c |
children | 820d34f3f3d7 |
files | rvinterf/lowlevel/format_fc.c rvinterf/lowlevel/rvifmain.c rvinterf/lowlevel/rvtdump.c |
diffstat | 3 files changed, 26 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/rvinterf/lowlevel/format_fc.c Sun Mar 20 20:23:54 2016 +0000 +++ b/rvinterf/lowlevel/format_fc.c Sun Mar 20 20:35:17 2016 +0000 @@ -74,6 +74,23 @@ } void +print_tch_output_raw() +{ + int i; + char *dp; + + dp = fmtbuf; + strcpy(dp, "TCH:"); + dp += 4; + for (i = 1; i < rxpkt_len; i++) { + sprintf(dp, " %02X", rxpkt[i]); + dp += 3; + } + *dp = '\0'; + output_line(fmtbuf); +} + +void report_extui_packet() { sprintf(fmtbuf, "LCD OUT: row %u col %u-%u", rxpkt[1], rxpkt[2],
--- a/rvinterf/lowlevel/rvifmain.c Sun Mar 20 20:23:54 2016 +0000 +++ b/rvinterf/lowlevel/rvifmain.c Sun Mar 20 20:35:17 2016 +0000 @@ -197,6 +197,12 @@ else report_extui_packet(); return; + case RVT_TCH_HEADER: + if (!no_output || logF) + print_tch_output_raw(); + if (client_head) + forward_nonrvt_pkt(); + return; case '*': print_fc_lld_msg(); return;