changing flush() to FirmataSerial->flush