Add 25ms post_write_delay for gs232a/b and a retry when \r\n is received

https://github.com/Hamlib/Hamlib/issues/371
pull/453/head
Michael Black W9MDB 2020-12-01 16:57:10 -06:00
rodzic f8790337d3
commit 1beecdd685
2 zmienionych plików z 8 dodań i 4 usunięć

Wyświetl plik

@ -103,6 +103,8 @@ transaction_write:
retval = read_string(&rs->rotport, data, data_len, REPLY_EOM,
strlen(REPLY_EOM));
if (strncmp(data,"\r\n",2)==0) retval = -1;
if (retval < 0)
{
if (retry_read++ < rot->state.rotport.retry)
@ -304,7 +306,7 @@ const struct rot_caps gs23_rot_caps =
.serial_parity = RIG_PARITY_NONE,
.serial_handshake = RIG_HANDSHAKE_NONE,
.write_delay = 0,
.post_write_delay = 0,
.post_write_delay = 25,
.timeout = 400,
.retry = 3,
@ -340,7 +342,7 @@ const struct rot_caps gs232_rot_caps =
.serial_parity = RIG_PARITY_NONE,
.serial_handshake = RIG_HANDSHAKE_NONE,
.write_delay = 0,
.post_write_delay = 0,
.post_write_delay = 25,
.timeout = 400,
.retry = 3,
@ -376,7 +378,7 @@ const struct rot_caps gs232a_rot_caps =
.serial_parity = RIG_PARITY_NONE,
.serial_handshake = RIG_HANDSHAKE_NONE,
.write_delay = 0,
.post_write_delay = 0,
.post_write_delay = 25,
.timeout = 400,
.retry = 3,

Wyświetl plik

@ -110,6 +110,8 @@ transaction_write:
retval = read_string(&rs->rotport, data, data_len, REPLY_EOM,
strlen(REPLY_EOM));
if (strncmp(data,"\r\n",2)==0) retval = -1;
if (retval < 0)
{
if (retry_read++ < rot->state.rotport.retry)
@ -341,7 +343,7 @@ const struct rot_caps gs232b_rot_caps =
.serial_parity = RIG_PARITY_NONE,
.serial_handshake = RIG_HANDSHAKE_NONE,
.write_delay = 0,
.post_write_delay = 0,
.post_write_delay = 25,
.timeout = 400,
.retry = 3,