BLE: Fix ternary expression return type.

pull/8738/head
Vincent Coubard 2018-11-15 09:55:33 +00:00
parent 2477d0e385
commit 823825ee24
1 changed files with 3 additions and 1 deletions

View File

@ -2235,7 +2235,9 @@ void GenericGap::on_extended_advertising_report(
_eventHandler->onAdvertisingReport(
AdvertisingReportEvent(
event_type,
(PeerAddressType_t::type)(address_type ? address_type->value() : PeerAddressType_t::ANONYMOUS),
address_type ?
(peer_address_type_t::type) address_type->value() :
peer_address_type_t::ANONYMOUS,
(BLEProtocol::AddressBytes_t&)address,
primary_phy,
secondary_phy? *secondary_phy : phy_t::NONE,