Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mvladic committed Aug 27, 2018
1 parent 6b79a66 commit 1652df2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion eez_psu_sketch/gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1145,7 +1145,10 @@ void channelToggleOutput() {
void channelInitiateTrigger() {
popPage();
int err = trigger::initiate();
if (err != SCPI_RES_OK) {
if (err == SCPI_RES_OK) {
Channel& channel = Channel::get(g_toggleOutputWidgetCursor.cursor.i >= 0 ? g_toggleOutputWidgetCursor.cursor.i : 0);
channel_dispatcher::outputEnable(channel, true);
} else {
errorMessage(g_toggleOutputWidgetCursor.cursor, data::Value::ScpiErrorText(err));
}
}
Expand Down

0 comments on commit 1652df2

Please sign in to comment.