cmdmon: return error if doffset command fails
This commit is contained in:
parent
52b29f673f
commit
d2117ab697
1 changed files with 6 additions and 2 deletions
8
cmdmon.c
8
cmdmon.c
|
@ -858,9 +858,13 @@ static void
|
||||||
handle_doffset(CMD_Request *rx_message, CMD_Reply *tx_message)
|
handle_doffset(CMD_Request *rx_message, CMD_Reply *tx_message)
|
||||||
{
|
{
|
||||||
double doffset;
|
double doffset;
|
||||||
|
|
||||||
doffset = UTI_FloatNetworkToHost(rx_message->data.doffset.doffset);
|
doffset = UTI_FloatNetworkToHost(rx_message->data.doffset.doffset);
|
||||||
LCL_AccumulateOffset(doffset, 0.0);
|
if (!LCL_AccumulateOffset(doffset, 0.0)) {
|
||||||
LOG(LOGS_INFO, "Accumulated delta offset of %.6f seconds", doffset);
|
tx_message->status = htons(STT_FAILED);
|
||||||
|
} else {
|
||||||
|
LOG(LOGS_INFO, "Accumulated delta offset of %.6f seconds", doffset);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ================================================== */
|
/* ================================================== */
|
||||||
|
|
Loading…
Reference in a new issue