Modified FastSerial's write function to return size_t (number of bytes written).
this gives us a more robust interface, including timeouts