summaryrefslogtreecommitdiff
path: root/tools/btpclient.c
diff options
context:
space:
mode:
authorGrzegorz Kolodziejczyk <grzegorz.kolodziejczyk@codecoup.pl>2018-01-12 15:10:09 +0100
committerSzymon Janc <szymon.janc@codecoup.pl>2018-01-15 14:25:46 +0100
commit00f4a456ec6306dba225626fb27a4b108dd64047 (patch)
treeca793e1d04d7a52fdad6676df3fe75935b0e01db /tools/btpclient.c
parent2c7190715e2c3c5540591d477c6170245d1fd7a7 (diff)
downloadbluez-00f4a456ec6306dba225626fb27a4b108dd64047.tar.gz
tools/btpclient: Fix setting/reseting connectable flag
Defined setting flag is presented as mask.
Diffstat (limited to 'tools/btpclient.c')
-rw-r--r--tools/btpclient.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/btpclient.c b/tools/btpclient.c
index 806403f6a..a8a65fd51 100644
--- a/tools/btpclient.c
+++ b/tools/btpclient.c
@@ -368,9 +368,9 @@ static void btp_gap_set_connectable(uint8_t index, const void *param,
new_settings = adapter->current_settings;
if (cp->connectable)
- new_settings |= 1 << BTP_GAP_SETTING_CONNECTABLE;
+ new_settings |= BTP_GAP_SETTING_CONNECTABLE;
else
- new_settings &= ~(1 << BTP_GAP_SETTING_CONNECTABLE);
+ new_settings &= ~BTP_GAP_SETTING_CONNECTABLE;
update_current_settings(adapter, new_settings);