Skip to content

Commit

Permalink
zmodem: add more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian Negreanu committed Sep 4, 2024
1 parent 2352845 commit 9879cdf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modem/protocol/zmodem.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ def _recv(self, timeout):

def _recv_raw(self, timeout):
char = self.getc(1, timeout)
log.debug('Receive RAW: %x' % char)
if char == '':
return const.TIMEOUT
if char is not const.TIMEOUT:
Expand Down Expand Up @@ -204,6 +205,7 @@ def _recv_header(self, timeout, errors=10):
error_count = 0
char = None
while header_length == 0:
log.debug('Receiving header')
# Frist ZPAD
while char != const.ZPAD:
char = self._recv_raw(timeout)
Expand Down

0 comments on commit 9879cdf

Please sign in to comment.