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>pull/1/merge
parent
5846246ddd
commit
dc374b074b
|
|
@ -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') {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue