Skip to content

Commit 9879cdf

Browse files
author
Adrian Negreanu
committed
zmodem: add more logging
1 parent 2352845 commit 9879cdf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modem/protocol/zmodem.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ def _recv(self, timeout):
103103

104104
def _recv_raw(self, timeout):
105105
char = self.getc(1, timeout)
106+
log.debug('Receive RAW: %x' % char)
106107
if char == '':
107108
return const.TIMEOUT
108109
if char is not const.TIMEOUT:
@@ -204,6 +205,7 @@ def _recv_header(self, timeout, errors=10):
204205
error_count = 0
205206
char = None
206207
while header_length == 0:
208+
log.debug('Receiving header')
207209
# Frist ZPAD
208210
while char != const.ZPAD:
209211
char = self._recv_raw(timeout)

0 commit comments

Comments
 (0)