mirror of
https://github.com/linux-can/can-utils.git
synced 2026-08-05 06:20:00 +02:00
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:
committed by
Marc Kleine-Budde
parent
5846246ddd
commit
dc374b074b
@@ -185,6 +185,13 @@ rx_restart:
|
||||
ptr = 1;
|
||||
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 */
|
||||
if (cmd == 'N') {
|
||||
|
||||
Reference in New Issue
Block a user