sms_functions: debug the modem status during unlock

This commit is contained in:
Pavel Valach 2021-02-02 11:47:24 +01:00
parent 8c37fe23d0
commit 901f596d0b
No known key found for this signature in database
GPG Key ID: 5B4C9E8526682172

View File

@ -53,7 +53,7 @@ def unlock_sim(modem):
# unlock SIM, if not alreadY # unlock SIM, if not alreadY
props = modem.GetStatus() props = modem.GetStatus()
print(props) logger.debug("Modem status: {}".format(props))
if props and props['state'] == 2: if props and props['state'] == 2:
# check if the modem_pin.txt file exists # check if the modem_pin.txt file exists
with open('modem_pin.txt', 'r') as mp: with open('modem_pin.txt', 'r') as mp: