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.
This commit is contained in:
Marcel Holtmann 2010-10-13 08:38:43 +03:00
parent 4cacd3a76c
commit 9bc187bd45
1 changed files with 4 additions and 0 deletions

View File

@ -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];