From bb55b0eb5240c5f84856d2fac235c898582c8440 Mon Sep 17 00:00:00 2001 From: Mike Date: Sat, 1 Jan 2000 00:32:39 +0900 Subject: report max change in cal correctly, by comparing using fabs on both sides --- device-functions.c | 2 +- version.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/device-functions.c b/device-functions.c index adf4cc4..02162cf 100644 --- a/device-functions.c +++ b/device-functions.c @@ -4239,7 +4239,7 @@ int go_cal(CalStruct *caldata) ++caldata->error; } else { ++caldata->count; - if (fabs(change)>caldata->max_change) { + if (fabs(change) > fabs(caldata->max_change)) { caldata->max_change = change; } caldata->avg_change = ((caldata->avg_change * (((float) caldata->count) - 1.0)) + change) / caldata->count; diff --git a/version.h b/version.h index 4909183..9f9dabe 100644 --- a/version.h +++ b/version.h @@ -1,2 +1,2 @@ -#define FW_VERSION "6.4.35" +#define FW_VERSION "6.4.36" #define SCPI_version "1996.0" -- cgit