drivers/ninaw10: Fix machine_pin GPIO read.

This commit is contained in:
iabdalkader 2023-03-06 12:46:49 +01:00
parent 2bcd88d556
commit 7a817a3481

View File

@ -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;
}