add 'v' command response

add v command response. Some software like USBtinViewer using v for software version.
Tested on USBtinViewer 1.0

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
This commit is contained in:
bombilee
2015-05-08 13:00:15 +02:00
committed by Marc Kleine-Budde
parent 5846246ddd
commit dc374b074b
+7
View File
@@ -185,6 +185,13 @@ rx_restart:
ptr = 1; ptr = 1;
goto rx_out; goto rx_out;
} }
/* check for 'v'ersion command */
if (cmd == 'v') {
sprintf(replybuf, "v1014\r");
tmp = strlen(replybuf);
ptr = 1;
goto rx_out;
}
/* check for serial 'N'umber command */ /* check for serial 'N'umber command */
if (cmd == 'N') { if (cmd == 'N') {