Fix 303 serial inversion and bidir mode