don't show select window iff only one serialport
fix const
improve accuracy