Re: [Emc-developers] gpiod - is it me or is it them?

2023-07-27 Thread Rod Webster
I'm rusty too but to me it looks like if more than one element (line) is in the array, it walks through the array and returns an error if any entry is not for the same chip as the first element. I did not look for the structs that make up the elements. Nice to see some defensive programming...

Re: [Emc-developers] Emc-developers Digest, Vol 207, Issue 18

2023-07-27 Thread Alan Condit via Emc-developers
If I compare two pointers to the same variable, it seems to me that the two pointers should match. It has been too many years of not programming for me to be sure. I couldn’t find the function “gpiod_line_bulk_get_line” so I can’t really tell what pointer it is returning. Alan > On Jul 27, 202

Re: [Emc-developers] gpiod - is it me or is it them?

2023-07-27 Thread andy pugh
On Thu, 27 Jul 2023 at 01:24, andy pugh wrote: > I think that this is comparing two pointers to the same struct. But > they won;t ever match as they are different variables? Or. alternatively, I had been staring at the screen too long and my brain was frazzled. -- atp "A motorcycle is a bicycl