mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-28 19:20:54 +00:00
hsp: review UNUSED
This commit is contained in:
parent
35b80bb0da
commit
f08eeab9ea
@ -128,6 +128,7 @@ static void handle_query_rfcomm_event(uint8_t packet_type, uint16_t channel, uin
|
|||||||
|
|
||||||
static btstack_packet_handler_t hsp_hs_callback;
|
static btstack_packet_handler_t hsp_hs_callback;
|
||||||
static void dummy_notify(uint8_t packet_type, uint16_t channel, uint8_t * event, uint16_t size){
|
static void dummy_notify(uint8_t packet_type, uint16_t channel, uint8_t * event, uint16_t size){
|
||||||
|
// ok: no code
|
||||||
UNUSED(packet_type);
|
UNUSED(packet_type);
|
||||||
UNUSED(channel);
|
UNUSED(channel);
|
||||||
UNUSED(event);
|
UNUSED(event);
|
||||||
@ -450,7 +451,7 @@ static void hsp_run(void){
|
|||||||
|
|
||||||
|
|
||||||
static void packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size){
|
static void packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size){
|
||||||
UNUSED(channel);
|
UNUSED(channel); // ok: no channel for HCI_EVENT_PACKET and only single active RFCOMM channel
|
||||||
|
|
||||||
// printf("packet_handler type %u, packet[0] %x\n", packet_type, packet[0]);
|
// printf("packet_handler type %u, packet[0] %x\n", packet_type, packet[0]);
|
||||||
if (packet_type == RFCOMM_DATA_PACKET){
|
if (packet_type == RFCOMM_DATA_PACKET){
|
||||||
@ -608,9 +609,9 @@ static void packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *pack
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void handle_query_rfcomm_event(uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size){
|
static void handle_query_rfcomm_event(uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size){
|
||||||
UNUSED(packet_type);
|
UNUSED(packet_type); // ok: handling own sdp events
|
||||||
UNUSED(channel);
|
UNUSED(channel); // ok: no channel
|
||||||
UNUSED(size);
|
UNUSED(size); // ok: handling own sdp events
|
||||||
|
|
||||||
switch (hci_event_packet_get_type(packet)){
|
switch (hci_event_packet_get_type(packet)){
|
||||||
case SDP_EVENT_QUERY_RFCOMM_SERVICE:
|
case SDP_EVENT_QUERY_RFCOMM_SERVICE:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user