diff options
author | Dan Williams <dan@ioncontrol.co> | 2024-10-08 09:06:42 -0500 |
---|---|---|
committer | Dan Williams <dan@ioncontrol.co> | 2025-03-27 18:40:38 -0500 |
commit | 7d75a897a85e94d2bd183b38f9248a40dee3a570 (patch) | |
tree | 138910d78dd8bf0512f5674df7633f52b89ea238 /src/mm-port-probe-at.c | |
parent | b04ca7939260b0167cb8d1466ec949fbf28dccaf (diff) |
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 <dan@ioncontrol.co>
Diffstat (limited to 'src/mm-port-probe-at.c')
-rw-r--r-- | src/mm-port-probe-at.c | 5 |
1 files changed, 4 insertions, 1 deletions
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; } |