ublox: Disable DCD to avoid HUP when leaving data mode.

The HUP results in errors in gatio which will deref parts
of the AT channel. This makes it impossible to recover and
send further AT commands after the HUP.
This commit is contained in:
Richard Röjfors 2017-10-04 20:49:30 +02:00 committed by Denis Kenzior
parent b33470bcf9
commit 5b4539fd9a
1 changed files with 2 additions and 0 deletions

View File

@ -200,6 +200,8 @@ static int ublox_enable(struct ofono_modem *modem)
g_at_chat_send(data->modem, "ATE0 +CMEE=1", none_prefix,
NULL, NULL, NULL);
g_at_chat_send(data->modem, "AT&C0", NULL, NULL, NULL, NULL);
}
/* The modem can take a while to wake up if just powered on. */