quectel: EC21 does not understand AT+QIURC

Because the Quectel EC21 does not understand the AT+QIURC command, we
leave that out during initialisation.
This commit is contained in:
Lars Poeschel 2020-05-26 12:16:23 +02:00 committed by Denis Kenzior
parent debd73639a
commit c7de38491d
1 changed files with 8 additions and 2 deletions

View File

@ -772,8 +772,14 @@ static void setup_aux(struct ofono_modem *modem)
DBG("%p", modem);
g_at_chat_set_slave(data->modem, data->aux);
g_at_chat_send(data->aux, "ATE0; &C0; +CMEE=1; +QIURC=0", none_prefix,
NULL, NULL, NULL);
if (data->model == QUECTEL_EC21)
g_at_chat_send(data->aux, "ATE0; &C0; +CMEE=1", none_prefix,
NULL, NULL, NULL);
else
g_at_chat_send(data->aux, "ATE0; &C0; +CMEE=1; +QIURC=0",
none_prefix, NULL, NULL, NULL);
g_at_chat_send(data->aux, "AT+CFUN?", cfun_prefix, cfun_query, modem,
NULL);
}