summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}