[PATCH] [Telit Plugin] Wrong port peek in telit_qss_toggle_ready

Carlo Lobrano c.lobrano at gmail.com
Tue Dec 20 15:22:41 UTC 2016


qss unsolicited handler should be assigned to primary port first,
while secondary port was peeked.

---
 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,
-- 
2.7.4



More information about the ModemManager-devel mailing list