mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-18 19:21:54 +00:00
fix warnings
This commit is contained in:
parent
9cd88577a1
commit
db00faf25b
@ -254,13 +254,13 @@ static void h4_process(btstack_data_source_t *ds, btstack_data_source_callback_t
|
||||
packet_handler(HCI_EVENT_PACKET, &event[0], sizeof(event));
|
||||
}
|
||||
|
||||
if (h4_state != H4_PACKET_RECEIVED) return 0;
|
||||
if (h4_state != H4_PACKET_RECEIVED) return;
|
||||
|
||||
packet_handler(hci_packet[0], &hci_packet[1], read_pos-1);
|
||||
|
||||
h4_init_sm();
|
||||
|
||||
return 0;
|
||||
return;
|
||||
}
|
||||
|
||||
static int h4_send_packet(uint8_t packet_type, uint8_t *packet, int size){
|
||||
|
@ -227,7 +227,7 @@ void hsp_ag_create_sdp_record(uint8_t * service, uint32_t service_record_handle,
|
||||
}
|
||||
}
|
||||
|
||||
static int hsp_ag_send_str_over_rfcomm(uint16_t cid, char * command){
|
||||
static int hsp_ag_send_str_over_rfcomm(const uint16_t cid, char * command){
|
||||
int err = rfcomm_send(cid, (uint8_t*) command, strlen(command));
|
||||
if (err){
|
||||
log_error("rfcomm_send_internal -> error 0X%02x", err);
|
||||
|
Loading…
x
Reference in New Issue
Block a user