aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mm-base-sms.c13
-rw-r--r--src/mm-port-serial-at.c2
2 files changed, 12 insertions, 3 deletions
diff --git a/src/mm-base-sms.c b/src/mm-base-sms.c
index 25a02617..e1ee532d 100644
--- a/src/mm-base-sms.c
+++ b/src/mm-base-sms.c
@@ -1,3 +1,4 @@
+
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This program is free software; you can redistribute it and/or modify
@@ -914,7 +915,11 @@ store_ready (MMBaseModem *modem,
ctx = g_task_get_task_data (task);
- /* Send the actual message data */
+ /* Send the actual message data.
+ * We send the data as 'raw' data because we do NOT want it to
+ * be treated as an AT command (i.e. we don't want it prefixed
+ * with AT+ and suffixed with <CR><LF>), plus, we want it to be
+ * sent right away (not queued after other AT commands). */
mm_base_modem_at_command_raw (ctx->modem,
ctx->msg_data,
10,
@@ -1131,7 +1136,11 @@ send_generic_ready (MMBaseModem *modem,
ctx = g_task_get_task_data (task);
- /* Send the actual message data */
+ /* Send the actual message data.
+ * We send the data as 'raw' data because we do NOT want it to
+ * be treated as an AT command (i.e. we don't want it prefixed
+ * with AT+ and suffixed with <CR><LF>), plus, we want it to be
+ * sent right away (not queued after other AT commands). */
mm_base_modem_at_command_raw (ctx->modem,
ctx->msg_data,
10,
diff --git a/src/mm-port-serial-at.c b/src/mm-port-serial-at.c
index e51f73a5..67525af0 100644
--- a/src/mm-port-serial-at.c
+++ b/src/mm-port-serial-at.c
@@ -427,7 +427,7 @@ mm_port_serial_at_command (MMPortSerialAt *self,
buf,
timeout_seconds,
allow_cached,
- FALSE, /* always queued last */
+ is_raw, /* raw commands always run next, never queued last */
cancellable,
(GAsyncReadyCallback)serial_command_ready,
simple);