aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/ublox/mm-modem-helpers-ublox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/ublox/mm-modem-helpers-ublox.c b/plugins/ublox/mm-modem-helpers-ublox.c
index b0b4bf3e..ff1a8488 100644
--- a/plugins/ublox/mm-modem-helpers-ublox.c
+++ b/plugins/ublox/mm-modem-helpers-ublox.c
@@ -802,7 +802,7 @@ mm_ublox_get_modem_mode_any (const GArray *combinations)
guint bits_set;
combination = &g_array_index (combinations, MMModemModeCombination, i);
- if (combination->preferred == MM_MODEM_MODE_NONE)
+ if (combination->preferred != MM_MODEM_MODE_NONE)
continue;
bits_set = mm_count_bits_set (combination->allowed);
if (bits_set > any_bits_set) {