- IEC 61850 server: unbuffered reporting - send first integrity report after integrity timeout (before it was sent when the RCB was enabled)

pull/228/head
Michael Zillgith 6 years ago
parent fd84d21c10
commit cb8f159914

@ -69,9 +69,9 @@ typedef struct {
bool gi; /* flag to indicate that a GI report is triggered */ bool gi; /* flag to indicate that a GI report is triggered */
uint16_t sqNum; uint16_t sqNum;
uint32_t intgPd; uint32_t intgPd; /* integrity period in ms */
uint32_t bufTm; uint32_t bufTm;
uint64_t nextIntgReportTime; uint64_t nextIntgReportTime; /* time when to send next integrity report */
uint64_t reservationTimeout; uint64_t reservationTimeout;
MmsServerConnection clientConnection; MmsServerConnection clientConnection;

@ -615,7 +615,7 @@ refreshIntegrityPeriod(ReportControl* rc)
rc->intgPd = MmsValue_toUint32(intgPd); rc->intgPd = MmsValue_toUint32(intgPd);
if (rc->buffered == false) if (rc->buffered == false)
rc->nextIntgReportTime = 0; rc->nextIntgReportTime = Hal_getTimeInMs() + rc->intgPd;
} }
static void static void

Loading…
Cancel
Save