comgt-3g: enable modem before to setpin

some modems needs to be enabled with CFUN=1 before to set the pin

Signed-off-by: Giuseppe Lippolis <giu.lippolis@gmail.com>
(cherry picked from commit db776c01e1)
This commit is contained in:
Giuseppe Lippolis 2017-05-09 20:23:35 +02:00 committed by Jo-Philipp Wich
parent 070463fb61
commit 79def69047

View File

@ -7,6 +7,7 @@ opengt
let c=0
:start
send "AT+CFUN=1^m"
send "AT+CPIN?^m"
waitfor 15 "SIM PUK","SIM PIN","READY","ERROR","ERR"
if % = -1 goto timeout