init saved_calibration_t array for daqcard 6062e
authorFrank Mori Hess <fmhess@speakeasy.net>
Sat, 26 Apr 2003 18:54:53 +0000 (18:54 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Sat, 26 Apr 2003 18:54:53 +0000 (18:54 +0000)
comedi_calibrate/ni.c

index 0f725864cb0cbc7cee59a0f138ce5482df3ad142..c8581dd9bb672365995498f8a4b249e3c73a0cdc 100644 (file)
@@ -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 );