Fix gs232b get_pos error along with all other no_reply commands

https://github.com/Hamlib/Hamlib/issues/251
pull/281/head
Michael Black W9MDB 2020-05-17 14:11:29 -05:00
rodzic ba703787d9
commit 71bd84d5e5
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -143,7 +143,7 @@ transaction_write:
// If asked for we will check for connection
// we don't expect a reply...just a prompt return
// Seems some GS232B's only echo the CR
if ((strncmp(data, "?>", 2) != 0) && data[0] != 0x0d)
if (no_reply && (strncmp(data, "?>", 2) != 0) && data[0] != 0x0d)
{
rig_debug(RIG_DEBUG_VERBOSE,
"%s: Expected '?>' but got '%s' from cmd '%s'\n",
@ -317,7 +317,7 @@ const struct rot_caps gs232b_rot_caps =
ROT_MODEL(ROT_MODEL_GS232B),
.model_name = "GS-232B",
.mfg_name = "Yaesu",
.version = "20200424",
.version = "20200517",
.copyright = "LGPL",
.status = RIG_STATUS_STABLE,
.rot_type = ROT_TYPE_OTHER,