Fixed bug with UART sensor ports 2,3 and 4

The correct index on each port is not updated.