Skip to content

Commit 9128234

Browse files
committed
ported from 1.7.6 (#322)
1 parent a59ba39 commit 9128234

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/bb3/dib-dcp405/dib-dcp405.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1000,6 +1000,11 @@ struct DcpChannel : public Channel {
10001000
}
10011001

10021002
bool isErrorInputVoltageDetectedWhenChannellIsOff() override {
1003+
if (channel_dispatcher::getCouplingType() == channel_dispatcher::COUPLING_TYPE_SERIES) {
1004+
auto otherChannelIndex = channelIndex == 0 ? 1 : 0;
1005+
auto &otherChannel = Channel::get(otherChannelIndex);
1006+
return u.mon + otherChannel.u.mon > ERROR_INPUT_VOLTAGE_WHEN_CHANNEL_IS_OFF;
1007+
}
10031008
return u.mon > ERROR_INPUT_VOLTAGE_WHEN_CHANNEL_IS_OFF;
10041009
}
10051010
};

0 commit comments

Comments
 (0)