Skip to content

Commit

Permalink
list check fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mvladic committed Jan 20, 2020
1 parent 3cce478 commit 5d87c2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/eez/modules/psu/list_program.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ int checkLimits(int iChannel) {
if (j < voltageListLength) {
float roundedValue = channel_dispatcher::roundChannelValue(channel, UNIT_VOLT, voltage);
float diff = fabsf(roundedValue - voltage);
if (diff > 1E-6f) {
if (diff > 5E-6f) {
return SCPI_ERROR_CANNOT_SET_LIST_VALUE;
}
}
Expand All @@ -203,7 +203,7 @@ int checkLimits(int iChannel) {
if (j < currentListLength) {
float roundedValue = channel_dispatcher::roundChannelValue(channel, UNIT_AMPER, current);
float diff = fabsf(roundedValue - current);
if (diff > 1E-6f) {
if (diff > 5E-6f) {
return SCPI_ERROR_CANNOT_SET_LIST_VALUE;
}
}
Expand Down

0 comments on commit 5d87c2f

Please sign in to comment.