diff options
author | Aleksander Morgado <aleksandermj@chromium.org> | 2022-12-05 22:38:57 +0000 |
---|---|---|
committer | Aleksander Morgado <aleksandermj@chromium.org> | 2022-12-30 13:23:41 +0000 |
commit | 6d08c3dfa6954a632684fd5639943f27bbaaa7c0 (patch) | |
tree | cfefcbf6c65b217aede95fabd18ca84bc4dc7978 | |
parent | 2147469c76b3b08f1d65def8650bf8f251ea2ad5 (diff) | |
download | ModemManager-6d08c3dfa6954a632684fd5639943f27bbaaa7c0.tar.gz |
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
(cherry picked from commit 913022ed907ed4203dafe8c490278e478ca9d293)
-rw-r--r-- | src/mm-broadband-modem-mbim.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mm-broadband-modem-mbim.c b/src/mm-broadband-modem-mbim.c index fcd491f7c..b115dfc13 100644 --- a/src/mm-broadband-modem-mbim.c +++ b/src/mm-broadband-modem-mbim.c @@ -5099,7 +5099,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; |