summaryrefslogtreecommitdiff
path: root/plugins/ublox.c
diff options
context:
space:
mode:
authorRichard Röjfors <richard.rojfors@gmail.com>2017-10-04 20:49:30 +0200
committerDenis Kenzior <denkenz@gmail.com>2017-10-05 11:20:05 -0500
commit5b4539fd9a4e75375a3af16cc83949ddf88a9c63 (patch)
tree3ac85057bb03a8d5feab2c24f25d6393627b8e60 /plugins/ublox.c
parentb33470bcf9d0efe4a81d4fe8e979c5a37aac03a0 (diff)
downloadofono-5b4539fd9a4e75375a3af16cc83949ddf88a9c63.tar.gz
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.
Diffstat (limited to 'plugins/ublox.c')
-rw-r--r--plugins/ublox.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/ublox.c b/plugins/ublox.c
index 250a5be4..5611ef5c 100644
--- a/plugins/ublox.c
+++ b/plugins/ublox.c
@@ -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. */