minor RPi serialport enhancement