Fix error checking function in ftdi_out