Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mvladic committed Dec 1, 2022
1 parent 595fe7d commit a35b5db
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/eez/modules/dib-dcp405/dib-dcp405.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -583,14 +583,7 @@ struct DcpChannel : public Channel {
if (tasks & OUTPUT_ENABLE_TASK_DAC) {
dac.setDacVoltage(0);

if (flags.currentRangeSelectionMode == CURRENT_RANGE_SELECTION_USE_BOTH) {
setCurrentRange(CURRENT_RANGE_LOW);
} else if (flags.currentRangeSelectionMode == CURRENT_RANGE_SELECTION_ALWAYS_HIGH) {
setCurrentRange(CURRENT_RANGE_HIGH);
} else {
setCurrentRange(CURRENT_RANGE_LOW);
}
dac.setCurrent(getCalibratedCurrent(CURRENT_WHEN_CHANNEL_IS_OFF)); // set 1.0 mA to prevent both CC and CV leds on when channel is off
dac.setCurrent(getCalibratedCurrent(CURRENT_WHEN_CHANNEL_IS_OFF)); // set to prevent both CC and CV leds on when channel is off
}

// OE
Expand Down

0 comments on commit a35b5db

Please sign in to comment.