Skip to content

Commit

Permalink
Merge 63ce7e8 into 097ba85
Browse files Browse the repository at this point in the history
  • Loading branch information
hemna committed Dec 22, 2020
2 parents 097ba85 + 63ce7e8 commit fcd0d9b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions aprslib/inet.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def sendall(self, line):
self.close()
raise ConnectionError(str(exp))

def consumer(self, callback, blocking=True, immortal=False, raw=False):
def consumer(self, callback, blocking=True, immortal=False, raw=False, **kwargs):
"""
When a position sentence is received, it will be passed to the callback function
Expand All @@ -180,9 +180,9 @@ def consumer(self, callback, blocking=True, immortal=False, raw=False):
for line in self._socket_readlines(blocking):
if line[0:1] != b'#':
if raw:
callback(line)
callback(line, **kwargs)
else:
callback(self._parse(line))
callback(self._parse(line), **kwargs)
else:
self.logger.debug("Server: %s", line.decode('utf8'))
except ParseError as exp:
Expand Down

0 comments on commit fcd0d9b

Please sign in to comment.