Browse Source

gnrc_netdev2: fix gnrc_netdev2_set_tx_feedback assert.

patch-1
zhuoshuguo 6 years ago
parent
commit
b8428d3e95
  1. 2
      sys/include/net/gnrc/netdev2.h

2
sys/include/net/gnrc/netdev2.h

@ -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…
Cancel
Save