summaryrefslogtreecommitdiffstats
path: root/drivers/atmodem/sms.c
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2009-07-24 18:16:14 -0500
committerDenis Kenzior <denkenz@gmail.com>2009-07-27 17:09:35 -0500
commit4dae83636c4da4f9439e1e7dbb9fc0be85dfe058 (patch)
tree5b5fb24f3b01da58d61f75d58a846cbbd9a9988e /drivers/atmodem/sms.c
parentd4536b3d2b8a1b4fbfd748f114de8331f6e9e757 (diff)
downloadofono-4dae83636c4da4f9439e1e7dbb9fc0be85dfe058.tar.bz2
Use int for MoreMessagestoSend (mms)
Diffstat (limited to 'drivers/atmodem/sms.c')
-rw-r--r--drivers/atmodem/sms.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/atmodem/sms.c b/drivers/atmodem/sms.c
index f3a9ae1f..c3a9fa61 100644
--- a/drivers/atmodem/sms.c
+++ b/drivers/atmodem/sms.c
@@ -240,7 +240,7 @@ err:
}
static void at_cmgs(struct ofono_modem *modem, unsigned char *pdu, int pdu_len,
- int tpdu_len, gboolean mms, ofono_sms_submit_cb_t cb,
+ int tpdu_len, int mms, ofono_sms_submit_cb_t cb,
void *data)
{
struct at_data *at = ofono_modem_userdata(modem);
@@ -251,9 +251,11 @@ static void at_cmgs(struct ofono_modem *modem, unsigned char *pdu, int pdu_len,
if (!cbd)
goto error;
- if (mms)
- g_at_chat_send(at->parser, "AT+CMMS=1", none_prefix,
+ if (mms) {
+ sprintf(buf, "AT+CMMS=%d", mms);
+ g_at_chat_send(at->parser, buf, none_prefix,
NULL, NULL, NULL);
+ }
len = sprintf(buf, "AT+CMGS=%d\r", tpdu_len);
encode_hex_own_buf(pdu, pdu_len, 0, buf+len);