Clear the code entry when re-requested
This commit is contained in:
parent
7059a15680
commit
042d60b67f
|
@ -848,7 +848,10 @@ static int _gsm_event_error(Phone * phone, GSMEvent * event)
|
||||||
{
|
{
|
||||||
if(event->error.error == GSM_ERROR_SIM_PIN_REQUIRED
|
if(event->error.error == GSM_ERROR_SIM_PIN_REQUIRED
|
||||||
|| event->error.error == GSM_ERROR_SIM_PIN_WRONG)
|
|| event->error.error == GSM_ERROR_SIM_PIN_WRONG)
|
||||||
|
{
|
||||||
|
phone_code_clear(phone);
|
||||||
phone_show_code(phone, TRUE, PHONE_CODE_SIM_PIN);
|
phone_show_code(phone, TRUE, PHONE_CODE_SIM_PIN);
|
||||||
|
}
|
||||||
else if(event->error.error == GSM_ERROR_CONTACT_LIST_FAILED
|
else if(event->error.error == GSM_ERROR_CONTACT_LIST_FAILED
|
||||||
|| event->error.error == GSM_ERROR_MESSAGE_LIST_FAILED)
|
|| event->error.error == GSM_ERROR_MESSAGE_LIST_FAILED)
|
||||||
return 0; /* XXX report this error */
|
return 0; /* XXX report this error */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user