mirror of
https://gitlab.com/mobian1/eg25-manager.git
synced 2025-08-30 07:42:23 +02:00
at: add default handling for unrecognized responses
This commit is contained in:
3
src/at.c
3
src/at.c
@@ -195,6 +195,9 @@ static gboolean modem_response(gint fd,
|
|||||||
retry_at_command(manager);
|
retry_at_command(manager);
|
||||||
else if (strstr(response, "OK"))
|
else if (strstr(response, "OK"))
|
||||||
process_at_result(manager, response);
|
process_at_result(manager, response);
|
||||||
|
else
|
||||||
|
// Not a recognized response, try running next command, just in case
|
||||||
|
next_at_command(manager);
|
||||||
}
|
}
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
Reference in New Issue
Block a user