From 10ec1119fbde23f1c776d770049bd1fcff0482b3 Mon Sep 17 00:00:00 2001 From: Dylan Van Assche Date: Sat, 17 Apr 2021 15:50:07 +0200 Subject: [PATCH] at: fast/poweroff is only available in newer firmware versions Do not retry the AT command of the fast/poweroff setting as it may not be supported by the firmware --- src/at.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/at.c b/src/at.c index 37e3025..228ded6 100644 --- a/src/at.c +++ b/src/at.c @@ -232,8 +232,12 @@ static gboolean modem_response(gint fd, */ else if (strstr(response, "QGPSURC: \"xtradataexpire\"") && manager->at_cmds == NULL) gnss_upload_assistance_data(manager); - /* AT command failed, retry */ - else if (strstr(response, "ERROR")) + /* + * AT command failed, retry. + * QCFG="fast/poweroff" configuration is only available in + * newer firmware versions, skip retrying that specific AT command. + */ + else if (strstr(response, "ERROR") && !strstr(response, "fast/poweroff")) retry_at_command(manager); /* * Successfull AT responses contain 'OK', except for AT+QFUPL which also