kopia lustrzana https://github.com/micropython/micropython
drivers/ninaw10: Fix machine_pin GPIO read.
rodzic
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;
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue