kopia lustrzana https://github.com/Hamlib/Hamlib
rodzic
8965b62cd6
commit
af76fe554a
|
@ -665,7 +665,7 @@ int HAMLIB_API read_string(hamlib_port_t *p,
|
||||||
struct timeval tv, tv_timeout, start_time, end_time, elapsed_time;
|
struct timeval tv, tv_timeout, start_time, end_time, elapsed_time;
|
||||||
int total_count = 0;
|
int total_count = 0;
|
||||||
|
|
||||||
rig_debug(RIG_DEBUG_TRACE, "%s called, rx_max=%ld\n", __func__, rxmax);
|
rig_debug(RIG_DEBUG_TRACE, "%s called, rxmax=%ld\n", __func__, rxmax);
|
||||||
|
|
||||||
if (!p || !rxbuffer)
|
if (!p || !rxbuffer)
|
||||||
{
|
{
|
||||||
|
@ -766,7 +766,6 @@ int HAMLIB_API read_string(hamlib_port_t *p,
|
||||||
}
|
}
|
||||||
|
|
||||||
++total_count;
|
++total_count;
|
||||||
rig_debug(RIG_DEBUG_TRACE, "%s: total_count=%d rxmax-1=%ld\n", __func__, total_count, rxmax-1);
|
|
||||||
|
|
||||||
if (stopset && memchr(stopset, rxbuffer[total_count - 1], stopset_len))
|
if (stopset && memchr(stopset, rxbuffer[total_count - 1], stopset_len))
|
||||||
{
|
{
|
||||||
|
|
Ładowanie…
Reference in New Issue