From 9c5ff6c258e593c91af3dffa61a9bc218a4bbf62 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Mon, 8 Jan 2007 20:49:31 +0000 Subject: [PATCH] fixed read of G_Status_Register for m-series. --- comedi/drivers/ni_pcimio.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/comedi/drivers/ni_pcimio.c b/comedi/drivers/ni_pcimio.c index 5fb2e374..46d9ab84 100644 --- a/comedi/drivers/ni_pcimio.c +++ b/comedi/drivers/ni_pcimio.c @@ -1266,6 +1266,9 @@ static uint16_t m_series_stc_readw(comedi_device *dev, int reg) case Joint_Status_2_Register: offset = M_Offset_Joint_Status_2; break; + case G_Status_Register: + offset = M_Offset_G01_Status; + break; default: rt_printk("%s: bug! unhandled register=0x%x in switch.\n", __FUNCTION__, reg); BUG(); -- 2.26.2