From 7d75a897a85e94d2bd183b38f9248a40dee3a570 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Tue, 8 Oct 2024 09:06:42 -0500 Subject: port-probe: allow per-port ID_MM_TTY_AT_PROBE_TRIES tag for custom number of AT probes For modems that need more time to respond to AT port probes (like some Telit devices, and Cinterion-based Telit MV31/MV32) allow a custom number of AT probe tries on a per-port basis for generic probing, or plugins that opt into this functionality. Signed-off-by: Dan Williams --- src/mm-port-probe-at.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/mm-port-probe-at.c') diff --git a/src/mm-port-probe-at.c b/src/mm-port-probe-at.c index 37a5ab27..4505fc76 100644 --- a/src/mm-port-probe-at.c +++ b/src/mm-port-probe-at.c @@ -44,7 +44,10 @@ mm_port_probe_response_processor_is_at (const gchar *command, * they will just go on to the next command. */ if (g_error_matches (error, MM_SERIAL_ERROR, - MM_SERIAL_ERROR_RESPONSE_TIMEOUT)) { + MM_SERIAL_ERROR_RESPONSE_TIMEOUT) || + g_error_matches (error, + MM_SERIAL_ERROR, + MM_SERIAL_ERROR_SEND_FAILED)) { return FALSE; } -- cgit v1.2.3-70-g09d2