pbio/ioport: populate port field
This was never initialized. Since pbdrv/motor still uses the legacy pattern with a port argument, we need this to turn sensor power on and off.
We may be able to drop the port attribute once we reorganize ioports more generally. See also
@@ -508,6 +508,7 @@ PROCESS_THREAD(pbdrv_ioport_lpf2_process, ev, data) {
if (ioport->connected_type_id == PBIO_IODEV_TYPE_ID_LPF2_UNKNOWN_UART) {
ioport_enable_uart(ioport);
pbio_uartdev_get(i, &ioport->iodev);
+ ioport->iodev->port = i + PBDRV_CONFIG_FIRST_IO_PORT;
} else if (ioport->connected_type_id == PBIO_IODEV_TYPE_ID_NONE) {
ioport->iodev = NULL;
} else {
