From d3625f8e6f5e34c5c37c30a7d9790094411bb00f Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Mon, 29 Apr 2019 19:38:12 -0500 Subject: [PATCH] message-waiting: Fix logic error --- src/message-waiting.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/message-waiting.c b/src/message-waiting.c index a356e901..6115d495 100644 --- a/src/message-waiting.c +++ b/src/message-waiting.c @@ -753,8 +753,8 @@ try_cphs: efmwis[0] = mw->messages[0].indication ? 0xa : 0x5; if (mw->ef_cphs_mwis_length > 1) - efmwis[1] = mw->messages[1].indication ? 0xa : 0x5 | - mw->messages[3].indication ? 0xa0 : 0x50; + efmwis[1] = (mw->messages[1].indication ? 0xa : 0x5) | + (mw->messages[3].indication ? 0xa0 : 0x50); if (ofono_sim_write(mw->sim_context, SIM_EF_CPHS_MWIS_FILEID, mw_mwis_write_cb,