Fixed Send_TimeSyncUTC().

Fixes bug https://sourceforge.net/p/bacnet/bugs/28/
Added functions in s_ts.c that reference Device object Local_Time, UTC_Offset, and Daylight_Savings_Time properties.
Implements feature request https://sourceforge.net/p/bacnet/bugs/27/
This commit is contained in:
skarg
2014-01-19 19:55:20 +00:00
parent 717aaa9dfa
commit f7724eea6a
5 changed files with 134 additions and 7 deletions
+12
View File
@@ -1169,6 +1169,18 @@ void Device_getCurrentDateTime(
DateTime->time = Local_Time;
}
int32_t Device_UTC_Offset(void)
{
Update_Current_Time();
return UTC_Offset;
}
bool Device_Daylight_Savings_Status(void)
{
return Daylight_Savings_Status;
}
/* return the length of the apdu encoded or BACNET_STATUS_ERROR for error or
BACNET_STATUS_ABORT for abort message */
int Device_Read_Property_Local(