Skip to content

Commit e502eb5

Browse files
committed
HI2110: Cope correctly with NC GPIO
1 parent 1eff7ec commit e502eb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

targets/TARGET_ublox/TARGET_HI2110/gpio_api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@
3636

3737
void gpio_init(gpio_t *obj, PinName pin)
3838
{
39+
obj->pin = pin;
3940
if (pin == (PinName)NC) {
4041
return;
4142
}
4243

4344
MBED_ASSERT (pin < NUM_PINS);
4445

45-
obj->pin = pin;
4646
obj->mask = (1ul << pin);
4747

4848
obj->reg_set = &GPIO_OUT_BITSET;

0 commit comments

Comments
 (0)