- fixed bug #313: Server sends empty report when RCB is disabled while report is pending in bufTm

This commit is contained in:
Michael Zillgith 2015-04-24 17:27:48 +02:00
parent db6cf1ec28
commit a8a18475e8
2 changed files with 4 additions and 2 deletions

View file

@ -85,8 +85,8 @@ int main(int argc, char** argv) {
printf("RptEna = %i\n", rptEna);
/* Install handler for reports */
IedConnection_installReportHandler(con, "simpleIOGenericIO/LLN0.RP.EventsRCB01", ClientReportControlBlock_getRptId(rcb),
reportCallbackFunction, NULL);
IedConnection_installReportHandler(con, "simpleIOGenericIO/LLN0.RP.EventsRCB01",
ClientReportControlBlock_getRptId(rcb), reportCallbackFunction, NULL);
/* Set trigger options and enable report */
ClientReportControlBlock_setTrgOps(rcb, TRG_OPT_DATA_UPDATE | TRG_OPT_INTEGRITY | TRG_OPT_GI);

View file

@ -1255,6 +1255,8 @@ Reporting_RCBWriteAccessHandler(MmsMapping* self, ReportControl* rc, char* eleme
MmsValue* resv = ReportControl_getRCBValue(rc, "Resv");
MmsValue_setBoolean(resv, false);
rc->triggered = false;
rc->reserved = false;
}