fix warnings

This commit is contained in:
Matthias Ringwald 2020-05-14 14:41:17 +02:00
parent 67bce26374
commit 0d1523fec6
3 changed files with 7 additions and 4 deletions

View File

@ -1080,6 +1080,7 @@ static void btstack_crypto_event_handler(uint8_t packet_type, uint16_t cid, uint
}
if (HCI_EVENT_IS_COMMAND_COMPLETE(packet, hci_read_local_supported_commands)){
int ecdh_operations_supported = (packet[OFFSET_OF_DATA_IN_COMMAND_COMPLETE+1+34] & 0x06) == 0x06;
UNUSED(ecdh_operations_supported);
log_info("controller supports ECDH operation: %u", ecdh_operations_supported);
#ifdef ENABLE_ECC_P256
#ifndef USE_SOFTWARE_ECC_P256_IMPLEMENTATION

View File

@ -741,7 +741,7 @@ static void hci_transport_h5_read_next_byte(void){
// track time receiving SLIP frame
static uint32_t hci_transport_h5_receive_start;
static void hci_transport_h5_block_received(){
static void hci_transport_h5_block_received(void){
if (hci_transport_h5_active == 0) return;
// track start time when receiving first byte // a bit hackish
@ -753,8 +753,10 @@ static void hci_transport_h5_block_received(){
if (frame_size) {
// track time
uint32_t packet_receive_time = btstack_run_loop_get_time_ms() - hci_transport_h5_receive_start;
uint32_t nominmal_time = (frame_size + 6) * 10 * 1000 / uart_config.baudrate;
log_info("slip frame time %u ms for %u decoded bytes. nomimal time %u ms", (int) packet_receive_time, frame_size, (int) nominmal_time);
uint32_t nominal_time = (frame_size + 6) * 10 * 1000 / uart_config.baudrate;
UNUSED(nominal_time);
UNUSED(packet_receive_time);
log_info("slip frame time %u ms for %u decoded bytes. nomimal time %u ms", (int) packet_receive_time, frame_size, (int) nominal_time);
// reset state
hci_transport_h5_receive_start = 0;
//

View File

@ -1645,7 +1645,7 @@ static void l2cap_run_for_classic_channel_ertm(l2cap_channel_t * channel){
#endif /* ERTM */
#endif /* Classic */
static void l2cap_run_signaling_response() {
static void l2cap_run_signaling_response(void) {
// check pending signaling responses
while (signaling_responses_pending){