Skip to content

Commit

Permalink
Merge pull request #38 from Tinkertanker/dwm-156
Browse files Browse the repository at this point in the history
Allow spaces in +CMGL response in PDU mode
  • Loading branch information
faucamp committed Jun 11, 2014
2 parents df20a9a + ee9557a commit 834c68b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gsmmodem/modem.py
Original file line number Diff line number Diff line change
Expand Up @@ -810,7 +810,7 @@ def listStoredSms(self, status=Sms.STATUS_ALL, memory=None, delete=False):
messages.append(ReceivedSms(self, Sms.TEXT_MODE_STATUS_MAP[msgStatus], number, parseTextModeTimeStr(msgTime), msgText))
delMessages.add(int(msgIndex))
else:
cmglRegex = re.compile(r'^\+CMGL:\s*(\d+),(\d+),.*$')
cmglRegex = re.compile(r'^\+CMGL:\s*(\d+),\s*(\d+),.*$')
readPdu = False
result = self.write('AT+CMGL={0}'.format(status))
for line in result:
Expand Down

0 comments on commit 834c68b

Please sign in to comment.