Removed bytesWritten argument from serialportwrapper write