mraa.c: mraa_pin_mode_test should check against b->gpio_count -1
authorBrendan Le Foll <brendan.le.foll@intel.com>
Thu, 18 Dec 2014 14:20:14 +0000 (14:20 +0000)
committerBrendan Le Foll <brendan.le.foll@intel.com>
Thu, 18 Dec 2014 14:28:36 +0000 (14:28 +0000)
commit2574efdb1d766d384a919890e1cb70ab10ff58c4
treeff5ddd3aad7278be47da29c15134e1fc7e906d8f
parent1ee5e25f85cd699206e3f34e0df2248382573c79
mraa.c: mraa_pin_mode_test should check against b->gpio_count -1

It's already the case for rpi & MMAX but it should be noted that on 1 indexed
boards gpio_count should be +1

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
src/mraa.c