piface / libpifacedigital

A simple C library for controlling PiFace Digital.
GNU General Public License v3.0
16 stars 10 forks source link

pifacedigital_wait_for_input incorrect arguments #6

Open YarGnawh opened 9 years ago

YarGnawh commented 9 years ago

Currently in example and example-interrupt:

pifacedigital_wait_for_input(-1, hw_addr);

which doesn't match

int     pifacedigital_wait_for_input (uint8_t *data, int timeout, uint8_t hw_addr)

also, pifacedigital_wait_for_input is return -1 for some unknown reason

xaqq commented 9 years ago

Hello, yeah the prototype was changed not long ago. see https://github.com/piface/libpifacedigital/pull/5

tompreston commented 9 years ago

I've pushed a fix to the dev-tp branch which should work. Can someone test - I'm not near a Pi at the moment. Might be at one later or tomorrow.

h0ru5 commented 9 years ago

just ran into the same thing and wanted to send a PR. checked your code as well and its working.