Skip to content

Commit

Permalink
nimble/bttester: Add early exit in read_var_cb
Browse files Browse the repository at this point in the history
This commit applies early exit if status != 0.
  • Loading branch information
piotrnarajowski committed Jun 3, 2024
1 parent f5ea99f commit a23e5c8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/bttester/src/btp_gatt_cl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1392,6 +1392,7 @@ read_var_cb(uint16_t conn_handle,
rp->data_length = 0;
tester_event(BTP_SERVICE_ID_GATTC, BTP_GATTC_READ_MULTIPLE_VAR_RP,
rp, sizeof(*rp));
return 0;
}

for (int i = 0; i < num_attrs; i++) {
Expand Down

0 comments on commit a23e5c8

Please sign in to comment.