kopia lustrzana https://github.com/Hamlib/Hamlib
Make multicast a little quieter so one can run rigctl -vvvvv
https://github.com/Hamlib/Hamlib/issues/695pull/1404/head
rodzic
df413d0dc4
commit
b609eb0085
|
@ -40,6 +40,7 @@ getmyline(int fd, char *buf)
|
||||||
int i = 0;
|
int i = 0;
|
||||||
memset(buf, 0, BUFSIZE);
|
memset(buf, 0, BUFSIZE);
|
||||||
|
|
||||||
|
hl_usleep(5*1000);
|
||||||
while (read(fd, &c, 1) > 0)
|
while (read(fd, &c, 1) > 0)
|
||||||
{
|
{
|
||||||
buf[i++] = c;
|
buf[i++] = c;
|
||||||
|
|
|
@ -945,7 +945,7 @@ void *multicast_publisher(void *arg)
|
||||||
continue;
|
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);
|
snapshot_buffer);
|
||||||
|
|
||||||
send_result = sendto(
|
send_result = sendto(
|
||||||
|
|
|
@ -87,7 +87,8 @@ static int snapshot_serialize_rig(cJSON *rig_node, RIG *rig)
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
RETURNFUNC2(RIG_OK);
|
//RETURNFUNC2(RIG_OK);
|
||||||
|
return RIG_OK;
|
||||||
|
|
||||||
error:
|
error:
|
||||||
RETURNFUNC2(-RIG_EINTERNAL);
|
RETURNFUNC2(-RIG_EINTERNAL);
|
||||||
|
@ -171,7 +172,8 @@ static int snapshot_serialize_vfo(cJSON *vfo_node, RIG *rig, vfo_t vfo)
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
RETURNFUNC2(RIG_OK);
|
//RETURNFUNC2(RIG_OK);
|
||||||
|
return RIG_OK;
|
||||||
|
|
||||||
error:
|
error:
|
||||||
RETURNFUNC2(-RIG_EINTERNAL);
|
RETURNFUNC2(-RIG_EINTERNAL);
|
||||||
|
@ -298,7 +300,8 @@ static int snapshot_serialize_spectrum(cJSON *spectrum_node, RIG *rig,
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
RETURNFUNC2(RIG_OK);
|
//RETURNFUNC2(RIG_OK);
|
||||||
|
return RIG_OK;
|
||||||
|
|
||||||
error:
|
error:
|
||||||
RETURNFUNC2(-RIG_EINTERNAL);
|
RETURNFUNC2(-RIG_EINTERNAL);
|
||||||
|
@ -442,7 +445,8 @@ int snapshot_serialize(size_t buffer_length, char *buffer, RIG *rig,
|
||||||
|
|
||||||
rig->state.snapshot_packet_sequence_number++;
|
rig->state.snapshot_packet_sequence_number++;
|
||||||
|
|
||||||
RETURNFUNC2(RIG_OK);
|
//RETURNFUNC2(RIG_OK);
|
||||||
|
return RIG_OK;
|
||||||
|
|
||||||
error:
|
error:
|
||||||
cJSON_Delete(root_node);
|
cJSON_Delete(root_node);
|
||||||
|
|
Ładowanie…
Reference in New Issue