From: Ian Abbott Date: Fri, 14 Mar 2008 15:31:22 +0000 (+0000) Subject: Fixed check for unspecified clock period for clock source NI_MIO_RTSI_CLOCK X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0c273dfad7c3bb901b9fba5b7cc0a6428641db03;p=comedi.git 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.) --- 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__);