From 5a9cdc980cf1f296b6f1b143063101920cf25759 Mon Sep 17 00:00:00 2001 From: Walter Doekes Date: Mon, 17 Jan 2022 09:00:02 +0100 Subject: [PATCH] Remove probably-useless code at voice init failure > i think these lines can also be removed, since ATQ_CMD_DECLARE_STI > will plow ahead anyway, no need to manually restart the sequence. Dixit, @rojer in #148. I don't know. Sounds plausible. --- at_response.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/at_response.c b/at_response.c index 388a1efa..1832daec 100644 --- a/at_response.c +++ b/at_response.c @@ -373,16 +373,6 @@ static int at_response_error (struct pvt* pvt, at_res_t res) if (pvt->has_voice == 0) { ast_log(LOG_WARNING, "[%s] Dongle has NO voice support\n", PVT_ID(pvt)); - - if (!pvt->initialized) - { - /* continue initialization in other job at cmd CMD_AT_CMGF */ - if (at_enqueue_initialization(task->cpvt, CMD_AT_CMGF)) - { - log_cmd_response_error(pvt, ecmd, "[%s] Error schedule initialization commands\n", PVT_ID(pvt)); - goto e_return; - } - } } break; /*