mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
gnrc_netdev2: fix gnrc_netdev2_set_tx_feedback assert.
This commit is contained in:
parent
4c87199d1f
commit
b8428d3e95
@ -193,7 +193,7 @@ static inline void gnrc_netdev2_set_tx_feedback(gnrc_netdev2_t *dev,
|
||||
{
|
||||
/* check if gnrc_mac_tx_feedback does not collide with
|
||||
* GNRC_NETDEV2_MAC_INFO_RX_STARTED */
|
||||
assert(txf & GNRC_NETDEV2_MAC_INFO_RX_STARTED);
|
||||
assert(!(txf & GNRC_NETDEV2_MAC_INFO_RX_STARTED));
|
||||
/* unset previous value */
|
||||
dev->mac_info &= ~GNRC_NETDEV2_MAC_INFO_TX_FEEDBACK_MASK;
|
||||
dev->mac_info |= (uint16_t)(txf & GNRC_NETDEV2_MAC_INFO_TX_FEEDBACK_MASK);
|
||||
|
Loading…
Reference in New Issue
Block a user