From 1b7e8087cad1f684c6b6d325cae6e4e97792ee94 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 1 Jan 1970 09:10:02 +0900 Subject: fix non-working linear interpolation, = vs == --- device-functions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'device-functions.c') 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; } -- cgit