kjj

Dependencies:   mbed-rtos mbed Xbus

Fork of MTi-1_example by Xsens

Revision:
39:9014c5236864
Parent:
38:d8d410d1662c
Child:
40:b77a8c10c76d
--- a/main.cpp	Thu May 21 13:05:49 2015 +0200
+++ b/main.cpp	Thu May 21 13:10:39 2015 +0200
@@ -105,23 +105,7 @@
 	switch (response->mid)
 	{
 		case XMID_GotoConfigAck:
-			pc.printf("Device went to config mode\n");
-			break;
-
-		case XMID_DeviceId:
-			pc.printf("Device ID: %08X\n", *(uint32_t*)response->data);
-			break;
-
-		case XMID_OutputConfig:
-			{
-				pc.printf("Output configuration\n");
-				OutputConfiguration* conf = (OutputConfiguration*)response->data;
-				for (int i = 0; i < response->length; ++i)
-				{
-					pc.printf("\t%s: %d Hz\n", XbusMessage_dataDescription(conf->dtype), conf->freq);
-					++conf;
-				}
-			}
+			pc.printf("Device went to config mode.\n");
 			break;
 
 		case XMID_Error:
@@ -161,14 +145,6 @@
 		case 'm':
 			sendCommand(XMID_GotoMeasurement);
 			break;
-
-		case 'd':
-			sendCommand(XMID_ReqDid);
-			break;
-
-		case 'o':
-			sendCommand(XMID_ReqOutputConfig);
-			break;
 	}
 }