summaryrefslogtreecommitdiff
path: root/plugins/ublox.c
diff options
context:
space:
mode:
authorRichard Röjfors <richard@puffinpack.se>2019-03-31 22:18:46 +0200
committerDenis Kenzior <denkenz@gmail.com>2019-04-01 09:56:40 -0500
commit2004d26cdc96dbe99250808aef98d9ed821edceb (patch)
tree53eee4d20026a5a34d923da7b3759771cf524c62 /plugins/ublox.c
parent4d64235f27cb48718b3baf87960dd042b1c16fb3 (diff)
downloadofono-2004d26cdc96dbe99250808aef98d9ed821edceb.tar.gz
ublox: Correct the USBCONF reply prefix
According to the u-blox AT Commands Manual and my tests the response prefix of AT+UUSBCONF is "+UUSBCONF:", including a colon. The colon was missing in the code, causing next step to parse a number to fail, since a colon is not a number.
Diffstat (limited to 'plugins/ublox.c')
-rw-r--r--plugins/ublox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/ublox.c b/plugins/ublox.c
index 355bdf9e..1ca0030a 100644
--- a/plugins/ublox.c
+++ b/plugins/ublox.c
@@ -164,7 +164,7 @@ static void query_usbconf_cb(gboolean ok,
g_at_result_iter_init(&iter, result);
retry:
- if (!g_at_result_iter_next(&iter, "+UUSBCONF")) {
+ if (!g_at_result_iter_next(&iter, "+UUSBCONF:")) {
ofono_error("Unable to query USB configuration");
goto error;
}