From 7195d95fa335ac6c7a174e4bd6aea66cbbb39a48 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Fri, 14 May 2010 15:51:39 +0000 Subject: [PATCH] Sending an SMS may take up to a minute (should cancel otherwise) --- src/modem.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modem.c b/src/modem.c index 32ba54a..93bd79f 100644 --- a/src/modem.c +++ b/src/modem.c @@ -477,6 +477,7 @@ int gsm_modem_send_message(GSMModem * gsmm, char const * number, GSM_ERROR_MESSAGE_SEND_FAILED); /* this ensures that no command gets in between */ gsm_command_set_priority(gsmc, GSM_PRIORITY_HIGHEST); + gsm_command_set_timeout(gsmc, 60000); } } if(ret != 0)