From 117b6d4ffbc71d6efe50e54b998c0bd763be7dbb Mon Sep 17 00:00:00 2001 From: Edgar Bonet Date: Wed, 17 Jan 2024 12:38:54 +0100 Subject: [PATCH] Examples: fix conversion of UNIPT01VOLTS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit According to src/uldaq.h and src/utility/EuScale.cpp, UNIPT01VOLTS means “0 to +.01 Volts”. Fix ConvertRangeToMinMax() accordingly. --- examples/utility.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/utility.h b/examples/utility.h index 2f40041..483d2df 100644 --- a/examples/utility.h +++ b/examples/utility.h @@ -361,7 +361,7 @@ void ConvertRangeToMinMax(Range range, double* min, double* max) break; case(UNIPT01VOLTS): *min = 0.0; - *max = 0.1; + *max = 0.01; break; case(UNIPT005VOLTS): *min = 0.0;