fix assignments that should have been equality tests
authorFrank Mori Hess <fmhess@speakeasy.net>
Tue, 20 May 2003 15:09:01 +0000 (15:09 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Tue, 20 May 2003 15:09:01 +0000 (15:09 +0000)
comedi_calibrate/ni.c

index 15036815ec05802cfdd908530273e77940ec1886..12e01af918e42e0c99fcc6823c8b5ceeb9f0c242 100644 (file)
@@ -170,12 +170,12 @@ static inline unsigned int ni_ao_unip_linearity( unsigned int channel )
 static const int num_ao_observables_611x = 4;
 static int ni_ao_zero_offset_611x( const calibration_setup_t *setup,
        unsigned int channel, unsigned int range ) {
-       assert( range = 0 );
+       assert( range == 0 );
        return 2 * channel;
 };
 static int ni_ao_reference_611x( const calibration_setup_t *setup,
        unsigned int channel, unsigned int range ) {
-       assert( range = 0 );
+       assert( range == 0 );
        return 2 * channel + 1;
 };
 static int ni_zero_offset_611x( const calibration_setup_t *setup,