fixed some % that were supposed to be &
authorFrank Mori Hess <fmhess@speakeasy.net>
Sun, 27 Oct 2002 03:25:35 +0000 (03:25 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Sun, 27 Oct 2002 03:25:35 +0000 (03:25 +0000)
comedi/drivers/comedi_rt_timer.c

index 46a57fd06c7d81b7da4c5445a725a9c7eeb580d8..a832614c1226c030bda7c36c0248df7e3a1ff5e4 100644 (file)
@@ -213,7 +213,7 @@ static int timer_data_read(comedi_device *dev, comedi_cmd *cmd,
                comedi_error(dev, "read error");
                return -EIO;
        }
-       if( s->flags % SDF_LSAMPL )
+       if( s->flags & SDF_LSAMPL )
                cfc_write_long_to_buffer( s, data );
        else
                cfc_write_to_buffer( s, data );
@@ -270,7 +270,7 @@ static int timer_dio_read(comedi_device *dev, comedi_cmd *cmd,
                return -EIO;
        }
 
-       if( s->flags % SDF_LSAMPL )
+       if( s->flags & SDF_LSAMPL )
                cfc_write_long_to_buffer( s, data );
        else
                cfc_write_to_buffer( s, data );