We now check if a serial port was selected before starting to scan.