The demo UTC time synchronization function 'Send_TimeSyncUTC was missing the NPDU encoding. Thank you, lopelope!

This commit is contained in:
skarg
2009-07-21 14:07:38 +00:00
parent 82a03d948b
commit e91062cd53
+4
View File
@@ -91,6 +91,10 @@ void Send_TimeSyncUTC(
/* we could use unicast or broadcast */
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 */
pdu_len =
timesync_utc_encode_apdu(&Handler_Transmit_Buffer[0], bdate, btime);