diff rvinterf/lowlevel/format_fc.c @ 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
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],