Defined setting flag is presented as mask. --- tools/btpclient.c | 4 ++-- 1 file 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); -- 2.13.6 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html