diff --git a/lib/pbio/drv/ioport/ioport_lpf2.c b/lib/pbio/drv/ioport/ioport_lpf2.c index 1fb07c2f7..d9b2cc893 100644 --- a/lib/pbio/drv/ioport/ioport_lpf2.c +++ b/lib/pbio/drv/ioport/ioport_lpf2.c @@ -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 {