OF_SERIAL_ERROR is -1

I think this is a symptom of another error...

writeByte(...) should return an int, like writeBytes(...), and not a bool