Merge pull request #1 from bombilee/bombilee-patch-1

add 'v' command response
pull/2/head
bombilee 2015-05-07 10:13:02 -04:00
commit 0a32afda3a
1 changed files with 7 additions and 0 deletions

View File

@ -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') {