Re: subdevices not respondig

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Monday 10 February 2003 09:30 am, Michele wrote:
> skel_dio_insn_bits is called...I looked at the code, everything seems
> allright, each subdevice with its functions as follows
>
> 	. . .
> 	s=dev->subdevices+1;
> 	/* analog output subdevice */
> 	s->type=COMEDI_SUBD_AO;
> 	s->subdev_flags=SDF_WRITABLE;
> 	s->n_chan=1;
> 	s->maxdata=0xffff;
> 	s->range_table=&range_bipolar10;
> 	s->insn_write = &skel_ao_winsn; will a comedi_data_write call for it?
> 	s->insn_read = &skel_ao_rinsn;
>

Those address-of operators shouldn't be there, does this patch help?

- --- skel.c      21 Nov 2002 07:56:24 -0000      1.28
+++ skel.c      10 Feb 2003 16:11:39 -0000
_at__at_ -255,8 +255,8 _at__at_
        s->n_chan=1;
        s->maxdata=0xffff;
        s->range_table=&range_bipolar5;
- -       s->insn_write = &skel_ao_winsn;
- -       s->insn_read = &skel_ao_rinsn;
+       s->insn_write = skel_ao_winsn;
+       s->insn_read = skel_ao_rinsn;

        s=dev->subdevices+2;
        /* digital i/o subdevice */

- -- 
Frank

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE+R9Ha5vihyNWuA4URAnqZAKCukAz7LLztmS4GJ/rXhJRv93CggwCeN4h+
ccA+Gy90UVzWGMEBFBncnFo=
=SDYK
-----END PGP SIGNATURE-----

Received on 2003-02-10Z16:22:47