From a663be6c7f0db13976398e45c58f30becee71f81 Mon Sep 17 00:00:00 2001 From: ramballan Date: Wed, 29 Mar 2023 18:26:20 +0400 Subject: [PATCH] Update modem.py fix AT+CLCC command for SIM800L module --- gsmmodem/modem.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gsmmodem/modem.py b/gsmmodem/modem.py index e468f34..5ee61f4 100644 --- a/gsmmodem/modem.py +++ b/gsmmodem/modem.py @@ -283,7 +283,7 @@ def connect(self, pin=None): # Unknown modem - we do not know what its call updates look like. Use polling instead self.log.info('Unknown/generic modem type - will use polling for call state updates') self._mustPollCallStatus = True - self._pollCallStatusRegex = re.compile('^\+CLCC:\s+(\d+),(\d),(\d),(\d),([^,]),"([^,]*)",(\d+)$') + self._pollCallStatusRegex = re.compile('^\+CLCC:\s+(\d+),(\d),(\d),(\d),([^,]),"([^,]*)",(\d+)') self._waitForAtdResponse = True # Most modems return OK immediately after issuing ATD # General meta-information setup