mirror of
https://gitlab.com/mobian1/eg25-manager.git
synced 2025-08-30 07:42:23 +02:00
gnss: wait for the modem to confirm upload success
If we clear QFUPL right after we finished the file transfer, we will execute the following commands right away, leading to interleaved replies from the modem (i.e. the reply to QGPSXTRATIME being received with the notification of upload completion). Keeping the command in the queue allows us to use the callback a second time once the upload is complete and resume assistance data processing accordingly.
This commit is contained in:
3
src/at.c
3
src/at.c
@@ -289,8 +289,9 @@ static gboolean modem_response(gint fd,
|
||||
/*
|
||||
* Successful AT responses contain 'OK', except for AT+QFUPL which also
|
||||
* returns 'CONNECT' when the modem is ready to receive data over serial
|
||||
* and '+QFUPL:...' when data upload is complete
|
||||
*/
|
||||
else if (strstr(response, "OK") || strstr(response, "CONNECT")) {
|
||||
else if (strstr(response, "OK") || strstr(response, "CONNECT") || strstr(response, "QFUPL")) {
|
||||
if (manager->at_callback != NULL)
|
||||
manager->at_callback(manager, response);
|
||||
else
|
||||
|
Reference in New Issue
Block a user