From 0c273dfad7c3bb901b9fba5b7cc0a6428641db03 Mon Sep 17 00:00:00 2001 From: Ian Abbott Date: Fri, 14 Mar 2008 15:31:22 +0000 Subject: [PATCH] Fixed check for unspecified clock period for clock source NI_MIO_RTSI_CLOCK in function ni_set_master_clock(). (Patch from Terry Barnaby of Beam Ltd.) --- comedi/drivers/ni_mio_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comedi/drivers/ni_mio_common.c b/comedi/drivers/ni_mio_common.c index 9229728f..3cd24abd 100644 --- a/comedi/drivers/ni_mio_common.c +++ b/comedi/drivers/ni_mio_common.c @@ -5429,7 +5429,7 @@ static int ni_set_master_clock(comedi_device * dev, unsigned source, devpriv->stc_writew(dev, devpriv->rtsi_trig_direction_reg, RTSI_Trig_Direction_Register); - if (devpriv->clock_ns == 0) { + if (period_ns == 0) { rt_printk ("%s: we don't handle an unspecified clock period correctly yet, returning error.\n", __FUNCTION__); -- 2.26.2