diff options
author | Denis Kenzior <denkenz@gmail.com> | 2019-04-29 19:38:12 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2019-04-29 19:38:12 -0500 |
commit | d3625f8e6f5e34c5c37c30a7d9790094411bb00f (patch) | |
tree | 39dc2c5a32155dc1ec4560d2e0a9a5501c9f3fd6 /src | |
parent | ca9d5b73abcfb41083c5fdb84385dcb2718e06de (diff) | |
download | ofono-d3625f8e6f5e34c5c37c30a7d9790094411bb00f.tar.gz |
message-waiting: Fix logic error
Diffstat (limited to 'src')
-rw-r--r-- | src/message-waiting.c | 4 |
1 files 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, |