don't let people run at RT priority
authorFrank Mori Hess <fmhess@speakeasy.net>
Wed, 17 Jul 2002 18:53:35 +0000 (18:53 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Wed, 17 Jul 2002 18:53:35 +0000 (18:53 +0000)
comedi/drivers/comedi_test.c

index 8c211322ad6d97b3d38bf2d7deb325db715c899d..5d879e06f55f9164dd10bfce272b463ad39bc281 100644 (file)
@@ -370,6 +370,12 @@ static int waveform_ai_cmd(comedi_device *dev, comedi_subdevice *s)
 {
        comedi_cmd *cmd = &s->async->cmd;
 
+       if( cmd->flags & TRIG_RT )
+       {
+               comedi_error( dev, "commands at RT priority not supported in this driver" );
+               return -1;
+       }
+
        devpriv->timer_running = 1;
        devpriv->ai_count = 0;
        devpriv->scan_period = cmd->scan_begin_arg / nano_per_micro;