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
This commit is contained in:
Dylan Van Assche
2021-04-17 15:50:07 +02:00
parent 898c0dc79c
commit 10ec1119fb

View File

@@ -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