Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
nitram2342 committed Dec 14, 2024
1 parent 0a766b9 commit bbb0d41
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions server/modem.py
Original file line number Diff line number Diff line change
Expand Up @@ -1056,14 +1056,12 @@ def __init__(self, gw_modem: Modem, port, baudrate=115200, incomingCallCallbackF
def _handleModemNotification(self, lines):

for i in range(0, len(lines)):
self.l.info(f"++++++++++++ Received line: [{lines[i]}]")

if lines[i].startswith('+CMT') and i + 1 < len(lines):
m = re.search('^\+CMT: "([^\"]+)"', lines[i])
if m:
self.l.debug(f"From: {m.group(1)}")
self.l.debug(f"PDU: {lines[i + 1]}")
#m = re.search('^\+CMT: "([^\"]+)"', lines[i])
#if m:
# self.l.debug(f"From: {m.group(1)}")
_sms = decodeSmsPdu(lines[i + 1])
self.l.debug(str(_sms))

new_sms = sms.SMS(
sms_id=None,
Expand Down

0 comments on commit bbb0d41

Please sign in to comment.