From 77a4aad1dc38751ba4ee56756a47378c32bc88f1 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Wed, 17 Jul 2002 18:53:35 +0000 Subject: [PATCH] don't let people run at RT priority --- comedi/drivers/comedi_test.c | 6 ++++++ 1 file changed, 6 insertions(+) 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; -- 2.26.2