Skip to content

Commit

Permalink
Remove probably-useless code at voice init failure
Browse files Browse the repository at this point in the history
> 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.
  • Loading branch information
wdoekes committed Jan 17, 2022
1 parent 3d046f7 commit 5a9cdc9
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions at_response.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
/*
Expand Down

0 comments on commit 5a9cdc9

Please sign in to comment.