From: Frank Mori Hess Date: Wed, 17 Jul 2002 18:53:35 +0000 (+0000) Subject: don't let people run at RT priority X-Git-Tag: r0_7_66~145 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=77a4aad1dc38751ba4ee56756a47378c32bc88f1;p=comedi.git don't let people run at RT priority --- diff --git a/comedi/drivers/comedi_test.c b/comedi/drivers/comedi_test.c index 8c211322..5d879e06 100644 --- a/comedi/drivers/comedi_test.c +++ b/comedi/drivers/comedi_test.c @@ -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;