astyle gs232a/gs232b

pull/453/head
Michael Black W9MDB 2020-12-02 07:50:11 -06:00
rodzic 4f8de24873
commit e49dc2e1f5
2 zmienionych plików z 10 dodań i 8 usunięć

Wyświetl plik

@ -103,11 +103,12 @@ transaction_write:
retval = read_string(&rs->rotport, data, data_len, REPLY_EOM,
strlen(REPLY_EOM));
if (strncmp(data,"\r\n",2) == 0
||strchr(data,'>'))
if (strncmp(data, "\r\n", 2) == 0
|| strchr(data, '>'))
{
rig_debug(RIG_DEBUG_ERR,"%s: wrong response nbytes=%d\n", __func__, (int)strlen(data));
dump_hex((unsigned char*)data,strlen(data));
rig_debug(RIG_DEBUG_ERR, "%s: wrong response nbytes=%d\n", __func__,
(int)strlen(data));
dump_hex((unsigned char *)data, strlen(data));
retval = -1; // force retry
}

Wyświetl plik

@ -110,11 +110,12 @@ transaction_write:
retval = read_string(&rs->rotport, data, data_len, REPLY_EOM,
strlen(REPLY_EOM));
if (strncmp(data,"\r\n",2) == 0
||strchr(data,'>'))
if (strncmp(data, "\r\n", 2) == 0
|| strchr(data, '>'))
{
rig_debug(RIG_DEBUG_ERR,"%s: wrong response nbytes=%d\n", __func__, (int)strlen(data));
dump_hex((unsigned char*)data,strlen(data));
rig_debug(RIG_DEBUG_ERR, "%s: wrong response nbytes=%d\n", __func__,
(int)strlen(data));
dump_hex((unsigned char *)data, strlen(data));
retval = -1; // force retry
}