From 664f82d5707ff539a81a488c85939405d1644189 Mon Sep 17 00:00:00 2001 From: Arnaud Ferraris Date: Fri, 11 Dec 2020 12:58:35 +0100 Subject: [PATCH] at: add default handling for unrecognized responses --- src/at.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/at.c b/src/at.c index c0cd92b..5654062 100644 --- a/src/at.c +++ b/src/at.c @@ -195,6 +195,9 @@ static gboolean modem_response(gint fd, retry_at_command(manager); else if (strstr(response, "OK")) process_at_result(manager, response); + else + // Not a recognized response, try running next command, just in case + next_at_command(manager); } return TRUE;