Change rc2800 rotator to use CR instead of LF for terminating char

https://github.com/Hamlib/Hamlib/issues/451
pull/453/head
Michael Black W9MDB 2020-11-27 13:21:46 -06:00
rodzic 8827f081dd
commit 4c87229e65
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -204,7 +204,7 @@ transaction_write:
/* first reply is an echo */
memset(data, 0, data_len);
retval = read_string(&rs->rotport, data, data_len, LF, strlen(LF));
retval = read_string(&rs->rotport, data, data_len, CR, strlen(CR));
if (retval < 0)
{
@ -218,7 +218,7 @@ transaction_write:
/* then comes the answer */
memset(data, 0, data_len);
retval = read_string(&rs->rotport, data, data_len, LF, strlen(LF));
retval = read_string(&rs->rotport, data, data_len, CR, strlen(CR));
if (retval < 0)
{
@ -365,7 +365,7 @@ const struct rot_caps rc2800_rot_caps =
ROT_MODEL(ROT_MODEL_RC2800),
.model_name = "RC2800",
.mfg_name = "M2",
.version = "20200107.0",
.version = "20201127.0",
.copyright = "LGPL",
.status = RIG_STATUS_BETA,
.rot_type = ROT_TYPE_AZEL,