Fixes to sg_serial_rpi
Merge branch 'testing'