cinnamon: fix build issue #577

This commit is contained in:
Matthias Ringwald 2024-04-02 09:43:53 +02:00
parent 439434a8b8
commit 478f65a47f

View File

@ -80,15 +80,15 @@ static void (*hci_packet_handler)(uint8_t packet_type, uint8_t *packet, uint16_t
static bool controller_ll_acl_reserved;
static void send_command_complete(uint16_t opcode, uint8_t status, const uint8_t * result, uint16_t len){
hci_event_create_from_template_and_arguments(hci_outgoing_event, &hci_event_command_complete,
/* num commands */ 1, opcode, status, len, result);
hci_event_create_from_template_and_arguments(hci_outgoing_event, sizeof(hci_outgoing_event),
&hci_event_command_complete, /* num commands */ 1, opcode, status, len, result);
hci_outgoing_event_ready = true;
btstack_run_loop_poll_data_sources_from_irq();
}
static void fake_command_complete(uint16_t opcode){
hci_event_create_from_template_and_arguments(hci_outgoing_event, &hci_event_command_complete,
/* num commands */ 1, opcode, ERROR_CODE_SUCCESS, 0, NULL);
hci_event_create_from_template_and_arguments(hci_outgoing_event, sizeof(hci_outgoing_event),
&hci_event_command_complete, /* num commands */ 1, opcode, ERROR_CODE_SUCCESS, 0, NULL);
hci_outgoing_event_ready = true;
btstack_run_loop_poll_data_sources_from_irq();
}