drivers/ninaw10: Fix machine_pin GPIO read.
This commit is contained in:
parent
2bcd88d556
commit
7a817a3481
@ -68,6 +68,7 @@ bool machine_pin_ext_get(machine_pin_obj_t *self) {
|
||||
if (self->id >= 0 && self->id < MICROPY_HW_PIN_EXT_COUNT) {
|
||||
uint8_t buf[] = {pin_map[self->id]};
|
||||
nina_ioctl(NINA_GPIO_READ, sizeof(buf), buf, 0);
|
||||
value = buf[0];
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user