fix timesync to send time update (#207)
Co-authored-by: Steve Karg <skarg@users.sourceforge.net>
This commit is contained in:
@@ -155,14 +155,11 @@ bool handler_timesync_recipient_write(BACNET_WRITE_PROPERTY_DATA *wp_data)
|
|||||||
static void handler_timesync_send(BACNET_DATE_TIME *current_date_time)
|
static void handler_timesync_send(BACNET_DATE_TIME *current_date_time)
|
||||||
{
|
{
|
||||||
unsigned index = 0;
|
unsigned index = 0;
|
||||||
bool status = false;
|
|
||||||
|
|
||||||
for (index = 0; index < MAX_TIME_SYNC_RECIPIENTS; index++) {
|
for (index = 0; index < MAX_TIME_SYNC_RECIPIENTS; index++) {
|
||||||
if (Time_Sync_Recipients[index].tag == 1) {
|
if (Time_Sync_Recipients[index].tag == 1) {
|
||||||
if (status) {
|
Send_TimeSync_Remote(&Time_Sync_Recipients[index].type.address,
|
||||||
Send_TimeSync_Remote(&Time_Sync_Recipients[index].type.address,
|
¤t_date_time->date, ¤t_date_time->time);
|
||||||
¤t_date_time->date, ¤t_date_time->time);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user