summaryrefslogtreecommitdiffstats
path: root/plugins/ifx.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2010-10-13 08:38:43 +0300
committerMarcel Holtmann <marcel@holtmann.org>2010-10-13 08:42:45 +0300
commit9bc187bd45548d1fd1bb0ee7582a0417a5c4373c (patch)
tree77d3ecf3e190b934fa01706e731103d929bad195 /plugins/ifx.c
parent4cacd3a76c6a577aa40828e1902bbc95e9a09b13 (diff)
downloadofono-9bc187bd45548d1fd1bb0ee7582a0417a5c4373c.tar.bz2
ifx: Disable modem UART for power saving
Send AT+XPOW=0,0,0 command when enabling modem to disable UART. This is done for power saving.
Diffstat (limited to 'plugins/ifx.c')
-rw-r--r--plugins/ifx.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/ifx.c b/plugins/ifx.c
index f48faa5a..313aa41c 100644
--- a/plugins/ifx.c
+++ b/plugins/ifx.c
@@ -264,6 +264,10 @@ static void xgendata_query(gboolean ok, GAtResult *result, gpointer user_data)
data->audio_context = 0;
}
+ /* disable UART for power saving */
+ g_at_chat_send(data->dlcs[AUX_DLC], "AT+XPOW=0,0,0", none_prefix,
+ NULL, NULL, NULL);
+
if (data->audio_setting && data->audio_source && data->audio_dest) {
char buf[64];