- IEC 61850 server: reporting - don't delete pending events when buffered report is enabled and dataset didn't change

pull/72/head
Michael Zillgith 7 years ago
parent e905bc242b
commit a830fc3cfb

@ -639,6 +639,9 @@ updateReportDataset(MmsMapping* mapping, ReportControl* rc, MmsValue* newDatSet,
#endif /* (MMS_DYNAMIC_DATA_SETS == 1) */ #endif /* (MMS_DYNAMIC_DATA_SETS == 1) */
if ((dataSet == NULL) || (dataSetChanged == true)) {
/* delete pending event and create buffer for new data set */
deleteDataSetValuesShadowBuffer(rc); deleteDataSetValuesShadowBuffer(rc);
rc->dataSet = dataSet; rc->dataSet = dataSet;
@ -657,6 +660,8 @@ updateReportDataset(MmsMapping* mapping, ReportControl* rc, MmsValue* newDatSet,
rc->inclusionFlags = (uint8_t*) GLOBAL_CALLOC(dataSet->elementCount, sizeof(uint8_t)); rc->inclusionFlags = (uint8_t*) GLOBAL_CALLOC(dataSet->elementCount, sizeof(uint8_t));
}
success = true; success = true;
if (rc->buffered) if (rc->buffered)

Loading…
Cancel
Save