aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksandermj@chromium.org>2022-12-05 22:38:57 +0000
committerAleksander Morgado <aleksandermj@chromium.org>2022-12-05 22:38:57 +0000
commit913022ed907ed4203dafe8c490278e478ca9d293 (patch)
tree7c3e01d8eca8f8e6210d0d37a01a23527a023c23
parentb515f72bb0e3677f8ddda5ad19b77388d13855c0 (diff)
broadband-modem-mbim: MbimSmsStatusFlag is flags, not an enum
We can directly use this change instead of requiring the libmbim version bump because the numeric values of the enum didn't change: NEW_MESSAGE == 2 == (1<<1) Fixes https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/issues/673
-rw-r--r--src/mm-broadband-modem-mbim.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mm-broadband-modem-mbim.c b/src/mm-broadband-modem-mbim.c
index 2af2f2eb..6f2f3540 100644
--- a/src/mm-broadband-modem-mbim.c
+++ b/src/mm-broadband-modem-mbim.c
@@ -5127,7 +5127,7 @@ sms_notification (MMBroadbandModemMbim *self,
&index,
NULL)) {
mm_obj_dbg (self, "received SMS store status update: '%s'", mbim_sms_status_flag_get_string (flag));
- if (flag == MBIM_SMS_STATUS_FLAG_NEW_MESSAGE)
+ if (flag & MBIM_SMS_STATUS_FLAG_NEW_MESSAGE)
sms_notification_read_stored_sms (self, index);
}
break;