Skip to content

Commit cbc4729

Browse files
committed
Merge pull request #106 from jorisa/master
Fix bug in gpio_set not setting reserved pins correctly
2 parents 15422b3 + 76ffc49 commit cbc4729

File tree

1 file changed

+1
-1
lines changed
  • libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC11XX_11CXX

1 file changed

+1
-1
lines changed

libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC11XX_11CXX/gpio_api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ uint32_t gpio_set(PinName pin) {
2424
unsigned i;
2525
int f = 0;
2626

27-
for (i = 0; i < sizeof(reserved_pins) / sizeof(int); i ++)
27+
for (i = 0; i < sizeof(reserved_pins) / sizeof(PinName); i ++)
2828
if (pin == reserved_pins[i]) {
2929
f = 1;
3030
break;

0 commit comments

Comments
 (0)