Make multicast a little quieter so one can run rigctl -vvvvv

https://github.com/Hamlib/Hamlib/issues/695
This commit is contained in:
Mike Black W9MDB 2023-10-20 16:25:21 -05:00
parent df413d0dc4
commit b609eb0085
3 changed files with 10 additions and 5 deletions

View File

@ -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;

View File

@ -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(

View File

@ -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);