mirror of https://github.com/ARMmbed/mbed-os.git
Cellular: Fix SIM pin enter command
parent
417a9fe2fb
commit
cbe2b50a32
|
|
@ -241,7 +241,7 @@ nsapi_error_t AT_CellularDevice::set_pin(const char *sim_pin)
|
||||||
const bool stored_debug_state = _at->get_debug();
|
const bool stored_debug_state = _at->get_debug();
|
||||||
_at->set_debug(false);
|
_at->set_debug(false);
|
||||||
|
|
||||||
_at->at_cmd_discard("+CPIN", "=,", "%s", sim_pin);
|
_at->at_cmd_discard("+CPIN", "=", "%s", sim_pin);
|
||||||
|
|
||||||
_at->set_debug(stored_debug_state);
|
_at->set_debug(stored_debug_state);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue