File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NORDIC_SOFTDEVICE/TARGET_NRF52/source Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -746,8 +746,8 @@ ble_error_t nRF5xGap::setPhy_(
746
746
#else
747
747
// TODO handle coded symbol once supported by the softdevice.
748
748
ble_gap_phys_t gap_phys = {
749
- txPhys? txPhys->value () : 0 ,
750
- rxPhys? rxPhys->value () : 0
749
+ txPhys? txPhys->value () : uint8_t ( 0 ) ,
750
+ rxPhys? rxPhys->value () : uint8_t ( 0 )
751
751
};
752
752
753
753
uint32_t err = sd_ble_gap_phy_update (connection, &gap_phys);
@@ -1662,8 +1662,8 @@ void nRF5xGap::on_phy_update_request(
1662
1662
const ble_gap_evt_phy_update_request_t & evt
1663
1663
) {
1664
1664
ble_gap_phys_t phys = {
1665
- _preferred_tx_phys & evt.peer_preferred_phys .tx_phys ,
1666
- _preferred_rx_phys & evt.peer_preferred_phys .rx_phys
1665
+ static_cast < uint8_t >( _preferred_tx_phys & evt.peer_preferred_phys .tx_phys ) ,
1666
+ static_cast < uint8_t >( _preferred_rx_phys & evt.peer_preferred_phys .rx_phys )
1667
1667
};
1668
1668
1669
1669
if (!phys.tx_phys ) {
You can’t perform that action at this time.
0 commit comments