Skip to content

Commit

Permalink
#46
Browse files Browse the repository at this point in the history
  • Loading branch information
mvladic committed Sep 16, 2020
1 parent 67ed4b9 commit f0e25c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/eez/modules/dib-smx46/dib-smx46.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@ void data_dib_smx46_dac1(DataOperationEnum operation, Cursor cursor, Value &valu
stepValues->unit = UNIT_VOLT;
value = 1;
} else if (operation == DATA_OPERATION_SET) {
((Smx46Module *)g_slots[cursor])->dac1 = value.getFloat();
((Smx46Module *)g_slots[cursor])->dac1 = roundPrec(value.getFloat(), DAC_RESOLUTION);
}
}

Expand Down Expand Up @@ -627,7 +627,7 @@ void data_dib_smx46_dac2(DataOperationEnum operation, Cursor cursor, Value &valu
stepValues->unit = UNIT_VOLT;
value = 1;
} else if (operation == DATA_OPERATION_SET) {
((Smx46Module *)g_slots[cursor])->dac2 = value.getFloat();
((Smx46Module *)g_slots[cursor])->dac2 = roundPrec(value.getFloat(), DAC_RESOLUTION);
}
}

Expand Down

0 comments on commit f0e25c2

Please sign in to comment.