Bluetooth: CSIS: Refactor bt_csis_client_lock_read_cb to use set
Refactor the bt_csis_client_lock_read_cb callback to use a bt_csis_client_set pointer instead of conn and index. Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
This commit is contained in:
parent
061fb633a5
commit
9c3745a69b
3 changed files with 14 additions and 12 deletions
|
@ -137,16 +137,16 @@ static void csis_client_release_set_cb(int err)
|
|||
shell_print(ctx_shell, "Set released");
|
||||
}
|
||||
|
||||
static void csis_client_lock_get_cb(struct bt_conn *conn, int err,
|
||||
uint8_t inst_idx, bool locked)
|
||||
static void csis_client_lock_get_cb(struct bt_csis_client_set *set, int err,
|
||||
bool locked)
|
||||
{
|
||||
if (err != 0) {
|
||||
shell_error(ctx_shell, "Device (index 0x%02x) lock get "
|
||||
"failed (%d)", inst_idx, err);
|
||||
shell_error(ctx_shell, "Device (set %p) lock get "
|
||||
"failed (%d)", set, err);
|
||||
}
|
||||
|
||||
shell_print(ctx_shell, "Device (index 0x%02x) lock value %d",
|
||||
inst_idx, locked);
|
||||
shell_print(ctx_shell, "Device (set %p) lock value %d",
|
||||
set, locked);
|
||||
}
|
||||
|
||||
static struct bt_csis_client_cb cbs = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue