mirror of https://github.com/ARMmbed/mbed-os.git
BLE: Fix ternary expression return type.
parent
2477d0e385
commit
823825ee24
|
@ -2235,7 +2235,9 @@ void GenericGap::on_extended_advertising_report(
|
||||||
_eventHandler->onAdvertisingReport(
|
_eventHandler->onAdvertisingReport(
|
||||||
AdvertisingReportEvent(
|
AdvertisingReportEvent(
|
||||||
event_type,
|
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,
|
(BLEProtocol::AddressBytes_t&)address,
|
||||||
primary_phy,
|
primary_phy,
|
||||||
secondary_phy? *secondary_phy : phy_t::NONE,
|
secondary_phy? *secondary_phy : phy_t::NONE,
|
||||||
|
|
Loading…
Reference in New Issue