Skip to content

Commit ecfc444

Browse files
tomasixyskartben
authored andcommitted
net: lib: ptp: fix follow up msg bug
When sending follow up messages, the pre send function does not insert the correct time stamp in the message. Issue is fixed by calling the pre send timestamp function. Signed-off-by: Tomas Choat <[email protected]>
1 parent 072a430 commit ecfc444

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

subsys/net/lib/ptp/msg.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,7 @@ void ptp_msg_pre_send(struct ptp_msg *msg)
328328
msg_port_id_pre_send(&msg->pdelay_resp.req_port_id);
329329
break;
330330
case PTP_MSG_FOLLOW_UP:
331+
msg_timestamp_pre_send(&msg->follow_up.precise_origin_timestamp);
331332
break;
332333
case PTP_MSG_DELAY_RESP:
333334
msg_timestamp_pre_send(&msg->delay_resp.receive_timestamp);

0 commit comments

Comments
 (0)