Fixed up comparison size issue in write property handling for PROP_LOG_DEVICE_OBJECT_PROPERTY. Was only checking first 4 bytes instead of the full structure.

This commit is contained in:
petermcs
2010-06-13 10:35:12 +00:00
parent 8bb844de36
commit 702da8e212
+1 -1
View File
@@ -783,7 +783,7 @@ bool Trend_Log_Write_Property(
Device_Object_Instance_Number();
/* Quick comparison if structures are packed ... */
if (memcmp(&TempSource, &CurrentLog->Source,
sizeof(BACNET_OBJECT_ID)) != 0) {
sizeof(BACNET_DEVICE_OBJECT_PROPERTY_REFERENCE)) != 0) {
/* Clear buffer if property being logged is changed */
CurrentLog->ulRecordCount = 0;
CurrentLog->iIndex = 0;