# HG changeset patch # User Mychaela Falconia # Date 1458506117 0 # Node ID 658fe6f1880fae822581a72e83c7f4bd3c63f146 # Parent 009d5bf2ff4cafd8a4a890809322fea1eedb30a9 rvinterf/lowlevel: handle TCH packet type in rvinterf and rvtdump diff -r 009d5bf2ff4c -r 658fe6f1880f rvinterf/lowlevel/format_fc.c --- 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], diff -r 009d5bf2ff4c -r 658fe6f1880f rvinterf/lowlevel/rvifmain.c --- 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; diff -r 009d5bf2ff4c -r 658fe6f1880f rvinterf/lowlevel/rvtdump.c --- a/rvinterf/lowlevel/rvtdump.c Sun Mar 20 20:23:54 2016 +0000 +++ b/rvinterf/lowlevel/rvtdump.c Sun Mar 20 20:35:17 2016 +0000 @@ -125,6 +125,9 @@ goto unknown; report_extui_packet(); return; + case RVT_TCH_HEADER: + print_tch_output_raw(); + return; case '*': print_fc_lld_msg(); return;