mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-18 05:42:49 +00:00
btstack_event: fix warning for calling little_endian_read with unsigned offset
This commit is contained in:
parent
ca1a07f42d
commit
7b2a466a2f
@ -5818,7 +5818,7 @@ static inline uint8_t gap_subevent_big_created_get_num_bis(const uint8_t * event
|
||||
* @note: btstack_type C
|
||||
*/
|
||||
static inline uint16_t gap_subevent_big_created_get_bis_con_handles(const uint8_t * event, uint8_t index){
|
||||
return little_endian_read_16(event, 6 + (2 * (int) index)));
|
||||
return little_endian_read_16(event, 6 + (2 * (int) index));
|
||||
}
|
||||
|
||||
/**
|
||||
@ -5866,7 +5866,7 @@ static inline uint8_t gap_subevent_big_sync_created_get_num_bis(const uint8_t *
|
||||
* @note: btstack_type C
|
||||
*/
|
||||
static inline uint16_t gap_subevent_big_sync_created_get_bis_con_handles(const uint8_t * event, uint8_t index){
|
||||
return little_endian_read_16(event, 6 + (2 * (int) index)));
|
||||
return little_endian_read_16(event, 6 + (2 * (int) index));
|
||||
}
|
||||
|
||||
/**
|
||||
@ -5914,7 +5914,7 @@ static inline uint8_t gap_subevent_cig_created_get_num_cis(const uint8_t * event
|
||||
* @note: btstack_type C
|
||||
*/
|
||||
static inline uint16_t gap_subevent_cig_created_get_cis_con_handles(const uint8_t * event, uint8_t index){
|
||||
return little_endian_read_16(event, 6 + (2 * (int) index)));
|
||||
return little_endian_read_16(event, 6 + (2 * (int) index));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -209,7 +209,7 @@ param_read = {
|
||||
'Y' : 'gatt_client_deserialize_characteristic(event, {offset}, {result_name});',
|
||||
'Z' : 'gatt_client_deserialize_characteristic_descriptor(event, {offset}, {result_name});',
|
||||
'V' : 'return &event[{offset}];',
|
||||
'C' : 'return little_endian_read_16(event, {offset} + (2 * (int) index)));'
|
||||
'C' : 'return little_endian_read_16(event, {offset} + (2 * (int) index));'
|
||||
}
|
||||
|
||||
def c_type_for_btstack_type(type):
|
||||
|
Loading…
x
Reference in New Issue
Block a user