sms_functions: debug the modem status during unlock
This commit is contained in:
parent
8c37fe23d0
commit
901f596d0b
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user