mirror of
https://github.com/sailfishos/ofono
synced 2025-12-03 08:01:05 +08:00
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:
@@ -264,6 +264,10 @@ static void xgendata_query(gboolean ok, GAtResult *result, gpointer user_data)
|
|||||||
data->audio_context = 0;
|
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) {
|
if (data->audio_setting && data->audio_source && data->audio_dest) {
|
||||||
char buf[64];
|
char buf[64];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user