summaryrefslogtreecommitdiff
path: root/device-functions.c
diff options
context:
space:
mode:
authorMike <mjc@avtechpulse.com>2000-01-01 00:57:24 +0900
committerMike <mjc@avtechpulse.com>2000-01-01 00:57:24 +0900
commit4dc26232f303ff91955ed5656da5bae6d8978242 (patch)
treee8a2cffaa353a7bdda2c41a0413dbccb046c159f /device-functions.c
parent6dd6772dc72dde0e1412ace800931c1117eadbba (diff)
make self-cal reference frequency configurable
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;