check sms time before extracting otp

This commit is contained in:
2022-03-04 10:03:04 +01:00
parent 713eb713d1
commit c512dd65a3
2 changed files with 23 additions and 20 deletions
-2
View File
@@ -35,8 +35,6 @@ class ModemPool:
self._send_command("AT+CFUN=1,1\r", ser)
# wait for 20 second, so that the modem can init all the sims
time.sleep(20)
for ser in self._serial_list:
ser.close()
def _generate_error_msg(self, slot_position, index, error: SIMError):
msg = "slot({}) SIM({}), error:{}".format(slot_position, index + 1,