Update serial port handling for boards with only 2 ports.