summaryrefslogtreecommitdiff
path: root/device-functions.c
diff options
context:
space:
mode:
authorroot <root@avtech.domain.avtechpulse.com>1970-01-01 09:10:02 +0900
committerroot <root@avtech.domain.avtechpulse.com>1970-01-01 09:10:02 +0900
commit1b7e8087cad1f684c6b6d325cae6e4e97792ee94 (patch)
treea5951a74fbdf1452577750f44f0a91284efc75ac /device-functions.c
parentf859be48b1efe57652a143704cb405a9f0ca1ca2 (diff)
fix non-working linear interpolation, = vs ==
Diffstat (limited to 'device-functions.c')
-rw-r--r--device-functions.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/device-functions.c b/device-functions.c
index e987e6f..fd6d5af 100644
--- a/device-functions.c
+++ b/device-functions.c
@@ -2489,7 +2489,7 @@ int Set_VI_Del_Cal(int parameter,int channel,int calibration_point_number)
static int linear_interpolation (int x1, int x2, float y1, float y2, float y_need)
{
- if ((y2 == y1) || (x2 = x1)) {
+ if ((y2 == y1) || (x2 == x1)) {
return -1;
}