aboutsummaryrefslogtreecommitdiff
path: root/plugins/simtech
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/simtech')
-rw-r--r--plugins/simtech/mm-broadband-modem-simtech.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/simtech/mm-broadband-modem-simtech.c b/plugins/simtech/mm-broadband-modem-simtech.c
index 25594d8d..488d4225 100644
--- a/plugins/simtech/mm-broadband-modem-simtech.c
+++ b/plugins/simtech/mm-broadband-modem-simtech.c
@@ -99,7 +99,7 @@ set_unsolicited_events_handlers (MMBroadbandModemSimtech *self,
G_REGEX_RAW | G_REGEX_OPTIMIZE, 0, NULL);
/* Enable unsolicited events in given port */
- for (i = 0; i < 2; i++) {
+ for (i = 0; i < G_N_ELEMENTS (ports); i++) {
if (!ports[i])
continue;