Changed the definition of year for BACnet dates to be AD, since the year 0, since the encoding and decoding were already converting it to and from 1900.
This commit is contained in:
@@ -86,10 +86,10 @@ typedef struct BACnet_Device_Address BACNET_ADDRESS;
|
||||
/* date */
|
||||
typedef struct BACnet_Date
|
||||
{
|
||||
uint8_t year;
|
||||
uint8_t month;
|
||||
uint8_t day;
|
||||
uint8_t wday;
|
||||
uint16_t year; /* AD */
|
||||
uint8_t month; /* 1=Jan */
|
||||
uint8_t day; /* 1..31 */
|
||||
uint8_t wday; /* 1=Monday */
|
||||
} BACNET_DATE;
|
||||
|
||||
/* time */
|
||||
|
||||
Reference in New Issue
Block a user