Skip to content

Commit

Permalink
Merge pull request #106 from jorisa/master
Browse files Browse the repository at this point in the history
Fix bug in gpio_set not setting reserved pins correctly
  • Loading branch information
bogdanm committed Nov 9, 2013
2 parents 15422b3 + 76ffc49 commit cbc4729
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ uint32_t gpio_set(PinName pin) {
unsigned i;
int f = 0;

for (i = 0; i < sizeof(reserved_pins) / sizeof(int); i ++)
for (i = 0; i < sizeof(reserved_pins) / sizeof(PinName); i ++)
if (pin == reserved_pins[i]) {
f = 1;
break;
Expand Down

0 comments on commit cbc4729

Please sign in to comment.