hci: fix c++ build

This commit is contained in:
Matthias Ringwald 2021-06-20 23:23:48 +02:00
parent 5a56192085
commit 23e56acec0

View File

@ -407,7 +407,7 @@ static void hci_pairing_started(hci_connection_t * hci_connection, bool ssp){
// if we are responder, use minimal service security level as required level
if (!initiator){
hci_connection->requested_security_level = btstack_max(hci_connection->requested_security_level, hci_stack->gap_minimal_service_security_level);
hci_connection->requested_security_level = btstack_max((uint32_t) hci_connection->requested_security_level, (uint32_t) hci_stack->gap_minimal_service_security_level);
}
log_info("pairing started, ssp %u, initiator %u, requested level %u", (int) ssp, (int) initiator, hci_connection->requested_security_level);