diff rvinterf/asyncshell/pktsort.c @ 1026:f511bbac0efa

fc-shell: beginning of TCH code expansion
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 30 May 2016 22:45:48 +0000
parents 820d34f3f3d7
children
line wrap: on
line diff
--- a/rvinterf/asyncshell/pktsort.c	Tue May 03 23:46:54 2016 +0000
+++ b/rvinterf/asyncshell/pktsort.c	Mon May 30 22:45:48 2016 +0000
@@ -58,24 +58,6 @@
 	async_msg_output(buf);
 }
 
-static void
-dump_tch()
-{
-	char buf[MAX_PKT_FROM_TARGET*3+5], *dp;
-	u_char *cp, *endp;
-
-	cp = rvi_msg + 2;
-	endp = rvi_msg + rvi_msg_len;
-	strcpy(buf, "TCH:");
-	dp = buf + 4;
-	while (cp < endp) {
-		sprintf(dp, " %02X", *cp++);
-		dp += 3;
-	}
-	*dp = '\0';
-	async_msg_output(buf);
-}
-
 void
 process_pkt_from_target()
 {
@@ -90,7 +72,7 @@
 		response_from_ati();
 		return;
 	case RVT_TCH_HEADER:
-		dump_tch();
+		tch_packet_rx();
 		return;
 	default:
 		tty_cleanup();