projects
/
platform
/
upstream
/
ofono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4bc444e
)
Move g_at_chat_add_terminator after chat object is verified
author
Marcel Holtmann
<marcel@holtmann.org>
Tue, 24 Nov 2009 17:08:46 +0000
(18:08 +0100)
committer
Marcel Holtmann
<marcel@holtmann.org>
Tue, 24 Nov 2009 17:08:46 +0000
(18:08 +0100)
plugins/huawei.c
patch
|
blob
|
history
diff --git
a/plugins/huawei.c
b/plugins/huawei.c
index
e83f9c1
..
72298fb
100644
(file)
--- a/
plugins/huawei.c
+++ b/
plugins/huawei.c
@@
-107,13
+107,14
@@
static int huawei_enable(struct ofono_modem *modem)
syntax = g_at_syntax_new_gsmv1();
data->chat = g_at_chat_new(channel, syntax);
- g_at_chat_add_terminator(data->chat, "COMMAND NOT SUPPORT", -1, FALSE);
g_at_syntax_unref(syntax);
g_io_channel_unref(channel);
if (!data->chat)
return -EIO;
+ g_at_chat_add_terminator(data->chat, "COMMAND NOT SUPPORT", -1, FALSE);
+
if (getenv("OFONO_AT_DEBUG"))
g_at_chat_set_debug(data->chat, huawei_debug, NULL);