- fixed - server scrahs when SyncIntegrityReportTimes in active and

IntgPd=0 (LIB61850-355)
v1.6_develop_rgoose_sntp
Michael Zillgith 3 years ago
parent d6d5050215
commit 0f3563643d

@ -968,6 +968,11 @@ refreshIntegrityPeriod(ReportControl* rc)
#endif
if (rc->buffered == false) {
if (rc->triggerOps & TRG_OPT_INTEGRITY) {
if (rc->intgPd > 0) {
if (rc->server->syncIntegrityReportTimes) {
rc->nextIntgReportTime = getNextRoundedStartTime(Hal_getTimeInMs(), rc->intgPd);
}
@ -976,6 +981,8 @@ refreshIntegrityPeriod(ReportControl* rc)
}
}
}
}
}
static void
refreshBufferTime(ReportControl* rc)
@ -2159,12 +2166,18 @@ Reporting_RCBWriteAccessHandler(MmsMapping* self, ReportControl* rc, char* eleme
if (rc->buffered) {
if (rc->triggerOps & TRG_OPT_INTEGRITY) {
if (rc->intgPd > 0) {
if (rc->server->syncIntegrityReportTimes) {
rc->nextIntgReportTime = getNextRoundedStartTime(Hal_getTimeInMs(), rc->intgPd);
}
else {
rc->nextIntgReportTime = 0;
}
}
}
purgeBuf(rc);

Loading…
Cancel
Save