Fix handling of command line ending.

If command is *not* already terminated with ';' or '\r' add the Kenwood 'cmdtrm' instead of '\r'.

git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2907 7ae35d74-ebe9-4afe-98af-79ac388436b8
Hamlib-1.2.11
Thomas Beierlein, DL1JBE 2010-05-05 04:29:04 +00:00
rodzic a02cf50c71
commit c151a6cc46
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -186,7 +186,7 @@ transaction_write:
/* XXX the if is temporary, until all invocations are fixed */
if (cmdstr[len - 1] != ';' && cmdstr[len - 1] != '\r') {
cmd[len] = '\r';
cmd[len] = caps->cmdtrm;
len++;
}