Diff between c44e01233ac38dc07dba717aa37148c2e8337a93 and 2aac3eafdedf433c3ca35f8ba7f58600e1ee6320
Changed Files
| File | Additions | Deletions | Status |
| tools/btgatt-client.c | +1 | -1 | modified |
Full Patch
diff --git a/tools/btgatt-client.c b/tools/btgatt-client.c
index 03fe76b..95e9b69 100644
--- a/tools/btgatt-client.c
+++ b/tools/btgatt-client.c
@@ -1029,7 +1029,7 @@ static void cmd_set_sec_level(struct client *cli, char *cmd_str)
return;
}
- if (bt_gatt_client_set_sec_level(cli->gatt, level) < 0)
+ if (!bt_gatt_client_set_sec_level(cli->gatt, level))
printf("Could not set sec level\n");
else
printf("Setting security level %d success\n", level);