diff rvinterf/tmsh/etmbasic.c @ 979:ebdf5afa9fb5

fc-tmsh: omr responses parsed and formatted in a readable manner
author Mychaela Falconia <falcon@ivan.Harhan.ORG>
date Thu, 10 Dec 2015 04:28:19 +0000
parents 577291a2ad76
children
line wrap: on
line diff
--- a/rvinterf/tmsh/etmbasic.c	Thu Dec 10 04:05:55 2015 +0000
+++ b/rvinterf/tmsh/etmbasic.c	Thu Dec 10 04:28:19 2015 +0000
@@ -10,6 +10,7 @@
 #include "pktmux.h"
 #include "limits.h"
 #include "etm.h"
+#include "tm3.h"
 
 extern u_char rvi_msg[];
 extern int rvi_msg_len;
@@ -36,7 +37,7 @@
 	int i, c;
 
 	if (rvi_msg_len < 4) {
-runt:		print_etm_pkt_raw("ETM Runt");
+runt:		print_etm_pkt_raw("TM runt");
 		return;
 	}
 	c = 0;
@@ -60,8 +61,14 @@
 			goto runt;
 		handle_ffs2_response();
 		return;
+	/* TM3 */
+	case MEM_READ:
+		if (rvi_msg_len < 5)
+			goto runt;
+		handle_omr_response();
+		return;
 	default:
-		print_etm_pkt_raw("ETM Unknown");
+		print_etm_pkt_raw("TM unknown");
 	}
 }