Skip to content

Commit 7a817a3

Browse files
committed
drivers/ninaw10: Fix machine_pin GPIO read.
1 parent 2bcd88d commit 7a817a3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/ninaw10/machine_pin_nina.c

+1
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ bool machine_pin_ext_get(machine_pin_obj_t *self) {
6868
if (self->id >= 0 && self->id < MICROPY_HW_PIN_EXT_COUNT) {
6969
uint8_t buf[] = {pin_map[self->id]};
7070
nina_ioctl(NINA_GPIO_READ, sizeof(buf), buf, 0);
71+
value = buf[0];
7172
}
7273
return value;
7374
}

0 commit comments

Comments
 (0)