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:
@@ -783,7 +783,7 @@ bool Trend_Log_Write_Property(
|
|||||||
Device_Object_Instance_Number();
|
Device_Object_Instance_Number();
|
||||||
/* Quick comparison if structures are packed ... */
|
/* Quick comparison if structures are packed ... */
|
||||||
if (memcmp(&TempSource, &CurrentLog->Source,
|
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 */
|
/* Clear buffer if property being logged is changed */
|
||||||
CurrentLog->ulRecordCount = 0;
|
CurrentLog->ulRecordCount = 0;
|
||||||
CurrentLog->iIndex = 0;
|
CurrentLog->iIndex = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user