mirror of
https://github.com/Hamlib/Hamlib.git
synced 2024-09-21 10:27:18 +00:00
Make multicast a little quieter so one can run rigctl -vvvvv
https://github.com/Hamlib/Hamlib/issues/695
This commit is contained in:
parent
df413d0dc4
commit
b609eb0085
@ -40,6 +40,7 @@ getmyline(int fd, char *buf)
|
||||
int i = 0;
|
||||
memset(buf, 0, BUFSIZE);
|
||||
|
||||
hl_usleep(5*1000);
|
||||
while (read(fd, &c, 1) > 0)
|
||||
{
|
||||
buf[i++] = c;
|
||||
|
@ -945,7 +945,7 @@ void *multicast_publisher(void *arg)
|
||||
continue;
|
||||
}
|
||||
|
||||
rig_debug(RIG_DEBUG_TRACE, "%s: sending rig snapshot data: %s\n", __func__,
|
||||
rig_debug(RIG_DEBUG_CACHE, "%s: sending rig snapshot data: %s\n", __func__,
|
||||
snapshot_buffer);
|
||||
|
||||
send_result = sendto(
|
||||
|
@ -87,7 +87,8 @@ static int snapshot_serialize_rig(cJSON *rig_node, RIG *rig)
|
||||
goto error;
|
||||
}
|
||||
|
||||
RETURNFUNC2(RIG_OK);
|
||||
//RETURNFUNC2(RIG_OK);
|
||||
return RIG_OK;
|
||||
|
||||
error:
|
||||
RETURNFUNC2(-RIG_EINTERNAL);
|
||||
@ -171,7 +172,8 @@ static int snapshot_serialize_vfo(cJSON *vfo_node, RIG *rig, vfo_t vfo)
|
||||
goto error;
|
||||
}
|
||||
|
||||
RETURNFUNC2(RIG_OK);
|
||||
//RETURNFUNC2(RIG_OK);
|
||||
return RIG_OK;
|
||||
|
||||
error:
|
||||
RETURNFUNC2(-RIG_EINTERNAL);
|
||||
@ -298,7 +300,8 @@ static int snapshot_serialize_spectrum(cJSON *spectrum_node, RIG *rig,
|
||||
goto error;
|
||||
}
|
||||
|
||||
RETURNFUNC2(RIG_OK);
|
||||
//RETURNFUNC2(RIG_OK);
|
||||
return RIG_OK;
|
||||
|
||||
error:
|
||||
RETURNFUNC2(-RIG_EINTERNAL);
|
||||
@ -442,7 +445,8 @@ int snapshot_serialize(size_t buffer_length, char *buffer, RIG *rig,
|
||||
|
||||
rig->state.snapshot_packet_sequence_number++;
|
||||
|
||||
RETURNFUNC2(RIG_OK);
|
||||
//RETURNFUNC2(RIG_OK);
|
||||
return RIG_OK;
|
||||
|
||||
error:
|
||||
cJSON_Delete(root_node);
|
||||
|
Loading…
Reference in New Issue
Block a user