Fix serial port initialization

Thanks to burstlam

Signed-off-by: Michael Bestas <mikeioannina@gmail.com>

Change-Id: I1744e5beaf8e2125513f3950b4eb382d9f197c1f