Allow single semicolon characaters to be skipped

pull/1242/head
Mike Black W9MDB 2023-02-20 22:49:27 -06:00
rodzic 514d87dcc9
commit fb12668f06
1 zmienionych plików z 7 dodań i 1 usunięć

Wyświetl plik

@ -1376,8 +1376,14 @@ static int read_string_generic(hamlib_port_t *p,
// check to see if our string startis with \...if so we need more chars
if (total_count == 0 && rxbuffer[total_count] == '\\') { rxmax = (rxmax - 1) * 5; }
if (total_count == 0 && rxbuffer[0] == ';')
{
rig_debug(RIG_DEBUG_VERBOSE, "%s: skipping single ';' char\n", __func__);
}
else {
total_count += (int) rd_count;
}
if (total_count == rxmax) break;