Browse Source

Merge branch 'hpd96-devel03-hm-mipayload-warning' into development03

pull/1190/head
lumapu 2 years ago
parent
commit
6d71976a23
  1. 2
      src/hm/miPayload.h

2
src/hm/miPayload.h

@ -478,7 +478,7 @@ class MiPayload {
if ( statusMi != mPayload[iv->id].sts[stschan] ) { //sth.'s changed?
iv->alarmCnt = 1; // minimum...
if (iv->type != INV_TYPE_1CH && ( statusMi != 3 //sth is or was wrong!
|| mPayload[iv->id].sts[stschan] && statusMi == 3 && mPayload[iv->id].sts[stschan] != 3)
|| ( mPayload[iv->id].sts[stschan] && statusMi == 3 && mPayload[iv->id].sts[stschan] != 3) )
) {
iv->lastAlarm[stschan] = alarm_t(prntsts, mPayload[iv->id].ts,mPayload[iv->id].ts);
iv->alarmCnt = iv->type == INV_TYPE_2CH ? 3 : 5;

Loading…
Cancel
Save