summaryrefslogtreecommitdiff
path: root/device-functions.c
diff options
context:
space:
mode:
Diffstat (limited to 'device-functions.c')
-rw-r--r--device-functions.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/device-functions.c b/device-functions.c
index 2565a02..9f3a086 100644
--- a/device-functions.c
+++ b/device-functions.c
@@ -4222,7 +4222,8 @@ int I2C_Self_Cal(int channel, int meas_mode, float *meas, float target_time)
continue;
}
- this = count * 100e-9;
+ this = count / get_bounded_float (globals.Flash.self_cal_ref_freq, SELF_CAL_REF_FREQ);
+
max_error = 0.001;
avg = 0.0;