From: Frank Mori Hess Date: Sat, 26 Apr 2003 18:54:53 +0000 (+0000) Subject: init saved_calibration_t array for daqcard 6062e X-Git-Tag: r0_7_21~211 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2feca1fa14ede97522d6d7ec566082bc465dcb16;p=comedilib.git init saved_calibration_t array for daqcard 6062e --- 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 );