The demo UTC time synchronization function 'Send_TimeSyncUTC was missing the NPDU encoding. Thank you, lopelope!
This commit is contained in:
@@ -91,6 +91,10 @@ void Send_TimeSyncUTC(
|
|||||||
|
|
||||||
/* we could use unicast or broadcast */
|
/* we could use unicast or broadcast */
|
||||||
datalink_get_broadcast_address(&dest);
|
datalink_get_broadcast_address(&dest);
|
||||||
|
/* encode the NPDU portion of the packet */
|
||||||
|
npdu_encode_npdu_data(&npdu_data, false, MESSAGE_PRIORITY_NORMAL);
|
||||||
|
pdu_len =
|
||||||
|
npdu_encode_pdu(&Handler_Transmit_Buffer[0], &dest, NULL, &npdu_data);
|
||||||
/* encode the APDU portion of the packet */
|
/* encode the APDU portion of the packet */
|
||||||
pdu_len =
|
pdu_len =
|
||||||
timesync_utc_encode_apdu(&Handler_Transmit_Buffer[0], bdate, btime);
|
timesync_utc_encode_apdu(&Handler_Transmit_Buffer[0], bdate, btime);
|
||||||
|
|||||||
Reference in New Issue
Block a user