From 2feca1fa14ede97522d6d7ec566082bc465dcb16 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Sat, 26 Apr 2003 18:54:53 +0000 Subject: [PATCH] init saved_calibration_t array for daqcard 6062e --- comedi_calibrate/ni.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/comedi_calibrate/ni.c b/comedi_calibrate/ni.c index 0f72586..c8581dd 100644 --- a/comedi_calibrate/ni.c +++ b/comedi_calibrate/ni.c @@ -859,6 +859,8 @@ static int cal_ni_daqcard_6062e( calibration_setup_t *setup ) current_cal = saved_cals; + memset( saved_cals, 0, sizeof( saved_cals ) ); + cal_postgain_binary( setup, ni_zero_offset_low, ni_zero_offset_high, ADC_PREGAIN_OFFSET ); cal_binary( setup, ni_zero_offset_high, ADC_POSTGAIN_OFFSET ); cal_binary( setup, ni_reference_low, ADC_GAIN ); -- 2.26.2