Skip to content

Commit 83d0477

Browse files
committed
1 parent 15d344d commit 83d0477

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/eez/modules/psu/gui/psu.cpp

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1853,6 +1853,11 @@ void channelReinitiateTrigger() {
18531853
void clearTrip(int channelIndex) {
18541854
Channel &channel = Channel::get(channelIndex);
18551855
channel_dispatcher::clearProtection(channel);
1856+
1857+
if (temperature::sensors[temp_sensor::AUX].isTripped()) {
1858+
temperature::sensors[temp_sensor::AUX].clearProtection();
1859+
}
1860+
18561861
channelToggleOutput();
18571862
}
18581863

@@ -1897,7 +1902,11 @@ void channelToggleOutput() {
18971902
selectChannelByCursor();
18981903
Channel &channel = *g_channel;
18991904
if (channel_dispatcher::isTripped(channel)) {
1900-
errorMessageWithAction("Channel is tripped!", clearTrip, "Clear", channel.channelIndex);
1905+
if (temperature::sensors[temp_sensor::AUX].isTripped()) {
1906+
errorMessageWithAction("AUX temp. sensor is tripped!", clearTrip, "Clear", channel.channelIndex);
1907+
} else {
1908+
errorMessageWithAction("Channel is tripped!", clearTrip, "Clear", channel.channelIndex);
1909+
}
19011910
} else {
19021911
if (!channel.isOutputEnabled() && !channel.isCalibrationExists()) {
19031912
if (!(g_skipChannelCalibrations & (1 << channel.channelIndex))) {

0 commit comments

Comments
 (0)