fixed read of G_Status_Register for m-series.
authorFrank Mori Hess <fmhess@speakeasy.net>
Mon, 8 Jan 2007 20:49:31 +0000 (20:49 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Mon, 8 Jan 2007 20:49:31 +0000 (20:49 +0000)
comedi/drivers/ni_pcimio.c

index 5fb2e374cbaab1a6c23feaad106230bebf6028e5..46d9ab84a3da7fe15576584014a74147db4a8259 100644 (file)
@@ -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();