Sending an SMS may take up to a minute (should cancel otherwise)
This commit is contained in:
parent
a1864b7956
commit
7195d95fa3
@ -477,6 +477,7 @@ int gsm_modem_send_message(GSMModem * gsmm, char const * number,
|
|||||||
GSM_ERROR_MESSAGE_SEND_FAILED);
|
GSM_ERROR_MESSAGE_SEND_FAILED);
|
||||||
/* this ensures that no command gets in between */
|
/* this ensures that no command gets in between */
|
||||||
gsm_command_set_priority(gsmc, GSM_PRIORITY_HIGHEST);
|
gsm_command_set_priority(gsmc, GSM_PRIORITY_HIGHEST);
|
||||||
|
gsm_command_set_timeout(gsmc, 60000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(ret != 0)
|
if(ret != 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user