[PATCH] [Telit Plugin] Wrong port peek in telit_qss_toggle_ready
Aleksander Morgado
aleksander at aleksander.es
Wed Jan 4 12:36:05 UTC 2017
On 20/12/16 16:22, Carlo Lobrano wrote:
> qss unsolicited handler should be assigned to primary port first,
> while secondary port was peeked.
>
Pushed to git master, thanks.
> ---
> plugins/telit/mm-broadband-modem-telit.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/plugins/telit/mm-broadband-modem-telit.c b/plugins/telit/mm-broadband-modem-telit.c
> index 2eca622..058ec2f 100644
> --- a/plugins/telit/mm-broadband-modem-telit.c
> +++ b/plugins/telit/mm-broadband-modem-telit.c
> @@ -156,7 +156,7 @@ telit_qss_toggle_ready (MMBaseModem *self,
> pattern = g_regex_new ("#QSS:\\s*([0-3])\\r\\n", G_REGEX_RAW, 0, NULL);
> g_assert (pattern);
>
> - primary = mm_base_modem_peek_port_secondary (MM_BASE_MODEM (ctx->self));
> + primary = mm_base_modem_peek_port_primary (MM_BASE_MODEM (ctx->self));
> mm_port_serial_at_add_unsolicited_msg_handler (
> primary,
> pattern,
>
--
Aleksander
https://aleksander.es
More information about the ModemManager-devel
mailing list