kjj
Dependencies: mbed-rtos mbed Xbus
Fork of MTi-1_example by
Revision 39:9014c5236864, committed 2015-05-21
- Comitter:
- Alex Young
- Date:
- Thu May 21 13:10:39 2015 +0200
- Parent:
- 38:d8d410d1662c
- Child:
- 40:b77a8c10c76d
- Commit message:
- Remove 'd' and 'o' PC commands.
These were only used for testing, and are now replaced by the firmware
startup procedure.
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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;
}
}
