SourceForge.net bug ID: 2785704. Added case in demo device object to return the Location property. Corrected comment and value of UTC Offset. Thank you piotrek ( bacpack )!

This commit is contained in:
skarg
2009-05-03 11:55:50 +00:00
parent 83392d0a4d
commit b194e2cd70
3 changed files with 18 additions and 7 deletions
+3 -2
View File
@@ -436,8 +436,9 @@ int Device_Encode_Property_APDU(
apdu_len = encode_application_time(&apdu[0], &local_time);
break;
case PROP_UTC_OFFSET:
/* Note: BACnet Time Zone is inverse of everybody else */
apdu_len = encode_application_signed(&apdu[0], 5 /* EST */ );
/* Note: BACnet Time Zone is offset of local time and UTC,
rather than offset of GMT. It is expressed in minutes */
apdu_len = encode_application_signed(&apdu[0], 5*60 /* EST */ );
break;
case PROP_LOCAL_DATE:
/* FIXME: if you support date */
+3 -2
View File
@@ -448,8 +448,9 @@ int Device_Encode_Property_APDU(
apdu_len = encode_application_time(&apdu[0], &local_time);
break;
case PROP_UTC_OFFSET:
/* Note: BACnet Time Zone is inverse of everybody else */
apdu_len = encode_application_signed(&apdu[0], 5 /* EST */ );
/* Note: BACnet Time Zone is offset of local time and UTC,
rather than offset of GMT. It is expressed in minutes */
apdu_len = encode_application_signed(&apdu[0], 5*60 /* EST */ );
break;
case PROP_LOCAL_DATE:
/* FIXME: if you support date */