@@ -1081,11 +1081,11 @@ public async Task<ble_msg_system_endpoint_tx_rsp_t> ble_cmd_system_endpoint_tx(i
1081
1081
public async Task < ble_msg_system_whitelist_append_rsp_t > ble_cmd_system_whitelist_append ( bd_addr address , int address_type )
1082
1082
{
1083
1083
log ( "ble_cmd_system_whitelist_append_id" ) ;
1084
- byte [ ] _data = new byte [ SIZE_HEADER + 0 + 1 + address . Length + 1 ] ;
1084
+ byte [ ] _data = new byte [ SIZE_HEADER + 0 + 6 + 1 ] ;
1085
1085
int idx = 0 ;
1086
1086
// header
1087
1087
_data [ idx ++ ] = ( byte ) ble_dev_types . ble_dev_type_ble | ( byte ) ble_msg_types . ble_msg_type_cmd | 0x0 ;
1088
- _data [ idx ++ ] = ( byte ) ( 0 + 1 + address . Length + 1 ) ;
1088
+ _data [ idx ++ ] = ( byte ) ( 0 + 6 + 1 ) ;
1089
1089
_data [ idx ++ ] = ( byte ) ble_classes . ble_cls_system ;
1090
1090
_data [ idx ++ ] = ( byte ) ble_command_ids . ble_cmd_system_whitelist_append_id ;
1091
1091
// data
@@ -1102,11 +1102,11 @@ public async Task<ble_msg_system_whitelist_append_rsp_t> ble_cmd_system_whitelis
1102
1102
public async Task < ble_msg_system_whitelist_remove_rsp_t > ble_cmd_system_whitelist_remove ( bd_addr address , int address_type )
1103
1103
{
1104
1104
log ( "ble_cmd_system_whitelist_remove_id" ) ;
1105
- byte [ ] _data = new byte [ SIZE_HEADER + 0 + 1 + address . Length + 1 ] ;
1105
+ byte [ ] _data = new byte [ SIZE_HEADER + 0 + 6 + 1 ] ;
1106
1106
int idx = 0 ;
1107
1107
// header
1108
1108
_data [ idx ++ ] = ( byte ) ble_dev_types . ble_dev_type_ble | ( byte ) ble_msg_types . ble_msg_type_cmd | 0x0 ;
1109
- _data [ idx ++ ] = ( byte ) ( 0 + 1 + address . Length + 1 ) ;
1109
+ _data [ idx ++ ] = ( byte ) ( 0 + 6 + 1 ) ;
1110
1110
_data [ idx ++ ] = ( byte ) ble_classes . ble_cls_system ;
1111
1111
_data [ idx ++ ] = ( byte ) ble_command_ids . ble_cmd_system_whitelist_remove_id ;
1112
1112
// data
@@ -2240,11 +2240,11 @@ public async Task<ble_msg_gap_discover_rsp_t> ble_cmd_gap_discover(int mode)
2240
2240
public async Task < ble_msg_gap_connect_direct_rsp_t > ble_cmd_gap_connect_direct ( bd_addr address , int addr_type , int conn_interval_min , int conn_interval_max , int timeout , int latency )
2241
2241
{
2242
2242
log ( "ble_cmd_gap_connect_direct_id" ) ;
2243
- byte [ ] _data = new byte [ SIZE_HEADER + 0 + 1 + address . Length + 1 + 2 + 2 + 2 + 2 ] ;
2243
+ byte [ ] _data = new byte [ SIZE_HEADER + 0 + 6 + 1 + 2 + 2 + 2 + 2 ] ;
2244
2244
int idx = 0 ;
2245
2245
// header
2246
2246
_data [ idx ++ ] = ( byte ) ble_dev_types . ble_dev_type_ble | ( byte ) ble_msg_types . ble_msg_type_cmd | 0x0 ;
2247
- _data [ idx ++ ] = ( byte ) ( 0 + 1 + address . Length + 1 + 2 + 2 + 2 + 2 ) ;
2247
+ _data [ idx ++ ] = ( byte ) ( 0 + 6 + 1 + 2 + 2 + 2 + 2 ) ;
2248
2248
_data [ idx ++ ] = ( byte ) ble_classes . ble_cls_gap ;
2249
2249
_data [ idx ++ ] = ( byte ) ble_command_ids . ble_cmd_gap_connect_direct_id ;
2250
2250
// data
@@ -2391,11 +2391,11 @@ public async Task<ble_msg_gap_set_adv_data_rsp_t> ble_cmd_gap_set_adv_data(int s
2391
2391
public async Task < ble_msg_gap_set_directed_connectable_mode_rsp_t > ble_cmd_gap_set_directed_connectable_mode ( bd_addr address , int addr_type )
2392
2392
{
2393
2393
log ( "ble_cmd_gap_set_directed_connectable_mode_id" ) ;
2394
- byte [ ] _data = new byte [ SIZE_HEADER + 0 + 1 + address . Length + 1 ] ;
2394
+ byte [ ] _data = new byte [ SIZE_HEADER + 0 + 6 + 1 ] ;
2395
2395
int idx = 0 ;
2396
2396
// header
2397
2397
_data [ idx ++ ] = ( byte ) ble_dev_types . ble_dev_type_ble | ( byte ) ble_msg_types . ble_msg_type_cmd | 0x0 ;
2398
- _data [ idx ++ ] = ( byte ) ( 0 + 1 + address . Length + 1 ) ;
2398
+ _data [ idx ++ ] = ( byte ) ( 0 + 6 + 1 ) ;
2399
2399
_data [ idx ++ ] = ( byte ) ble_classes . ble_cls_gap ;
2400
2400
_data [ idx ++ ] = ( byte ) ble_command_ids . ble_cmd_gap_set_directed_connectable_mode_id ;
2401
2401
// data
@@ -2432,11 +2432,11 @@ public async Task<ble_msg_gap_set_initiating_con_parameters_rsp_t> ble_cmd_gap_s
2432
2432
public async Task < ble_msg_gap_set_nonresolvable_address_rsp_t > ble_cmd_gap_set_nonresolvable_address ( bd_addr address )
2433
2433
{
2434
2434
log ( "ble_cmd_gap_set_nonresolvable_address_id" ) ;
2435
- byte [ ] _data = new byte [ SIZE_HEADER + 0 + 1 + address . Length ] ;
2435
+ byte [ ] _data = new byte [ SIZE_HEADER + 0 + 6 ] ;
2436
2436
int idx = 0 ;
2437
2437
// header
2438
2438
_data [ idx ++ ] = ( byte ) ble_dev_types . ble_dev_type_ble | ( byte ) ble_msg_types . ble_msg_type_cmd | 0x0 ;
2439
- _data [ idx ++ ] = ( byte ) ( 0 + 1 + address . Length ) ;
2439
+ _data [ idx ++ ] = ( byte ) ( 0 + 6 ) ;
2440
2440
_data [ idx ++ ] = ( byte ) ble_classes . ble_cls_gap ;
2441
2441
_data [ idx ++ ] = ( byte ) ble_command_ids . ble_cmd_gap_set_nonresolvable_address_id ;
2442
2442
// data
0 commit comments