diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2009-11-24 18:08:46 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-11-24 18:08:46 +0100 |
commit | 0333ad8580125e946b7c7b789e639f98d2cd2a0f (patch) | |
tree | 7170324020a14627ff99927b5d54cca455fd5195 /plugins | |
parent | 4bc444e9a84c451b0b52304c76466d4dfd50e7c6 (diff) |
Move g_at_chat_add_terminator after chat object is verified
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/huawei.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/huawei.c b/plugins/huawei.c index e83f9c18..72298fb2 100644 --- 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); |