telit: wrong port peek in telit_qss_toggle_ready
qss unsolicited handler should be assigned to primary port first, while secondary port was peeked.
This commit is contained in:

committed by
Aleksander Morgado

parent
9a92034cd3
commit
61dc32a72c
@@ -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,
|
||||
|
Reference in New Issue
Block a user