From 6a2cb8dd8ebf215a2d4193c2a984a79c6a488de5 Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Mon, 7 Oct 2024 14:17:32 +0200 Subject: [PATCH] mm-port-probe-at: also check for MM_SERIAL_ERROR_SEND_TIMEOUT Check here for the new error 'MM_SERIAL_ERROR_SEND_TIMEOUT'. Signed-off-by: Florian Eckert --- src/mm-port-probe-at.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/mm-port-probe-at.c b/src/mm-port-probe-at.c index 4505fc76..c9832b6c 100644 --- a/src/mm-port-probe-at.c +++ b/src/mm-port-probe-at.c @@ -47,7 +47,10 @@ mm_port_probe_response_processor_is_at (const gchar *command, MM_SERIAL_ERROR_RESPONSE_TIMEOUT) || g_error_matches (error, MM_SERIAL_ERROR, - MM_SERIAL_ERROR_SEND_FAILED)) { + MM_SERIAL_ERROR_SEND_FAILED) || + g_error_matches (error, + MM_SERIAL_ERROR, + MM_SERIAL_ERROR_SEND_TIMEOUT)) { return FALSE; }