diff --git a/xmodem/__init__.py b/xmodem/__init__.py index 525edc8..792dd82 100644 --- a/xmodem/__init__.py +++ b/xmodem/__init__.py @@ -302,9 +302,7 @@ def callback(total_packets, success_count, error_count) # emit packet while True: self.log.debug('send: block %d', sequence) - self.putc(header) - self.putc(data) - self.putc(checksum) + self.putc(header+data+checksum) char = self.getc(1, timeout) if char == ACK: success_count += 1