From 4dc26232f303ff91955ed5656da5bae6d8978242 Mon Sep 17 00:00:00 2001 From: Mike Date: Sat, 1 Jan 2000 00:57:24 +0900 Subject: make self-cal reference frequency configurable --- device-functions.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'device-functions.c') 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; -- cgit