File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
subsys/bluetooth/services/ots Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -211,7 +211,6 @@ static enum bt_gatt_ots_oacp_res_code oacp_checksum_proc_validate(
211
211
}
212
212
213
213
checksum = bt_ots_client_calc_checksum ((const uint8_t * )obj_data , params -> len );
214
- net_buf_simple_reserve (resp_param , sizeof (uint32_t ));
215
214
net_buf_simple_add_le32 (resp_param , checksum );
216
215
LOG_DBG ("Calculate from offset %u len %u checksum 0x%08x\n" , params -> offset ,
217
216
params -> len , checksum );
@@ -686,7 +685,7 @@ ssize_t bt_gatt_ots_oacp_write(struct bt_conn *conn,
686
685
int decode_status ;
687
686
struct bt_gatt_ots_oacp_proc oacp_proc = {0 };
688
687
struct bt_ots * ots = (struct bt_ots * ) attr -> user_data ;
689
- struct net_buf_simple resp_param ;
688
+ NET_BUF_SIMPLE_DEFINE ( resp_param , sizeof ( uint32_t )) ;
690
689
691
690
LOG_DBG ("Object Action Control Point GATT Write Operation" );
692
691
You can’t perform that action at this time.
0 commit comments