Skip to content

Commit

Permalink
after DAC test set output to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
mvladic committed Jan 14, 2020
1 parent cbf511c commit cad9139
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/eez/modules/dcpX05/dac.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ bool DigitalAnalogConverter::test(IOExpander &ioexp, AnalogDigitalConverter &adc

channel.adcMeasureMonDac();

channel.setVoltage(0);
channel.setCurrent(0);

float uMon = channel.u.mon_dac_last;
float uDiff = uMon - uSet;
if (fabsf(uDiff) > uSet * DAC_TEST_TOLERANCE / 100) {
Expand Down

0 comments on commit cad9139

Please sign in to comment.