From b8428d3e9573ba36766b1a121968e3c6716be521 Mon Sep 17 00:00:00 2001 From: zhuoshuguo Date: Wed, 1 Feb 2017 15:24:15 +0100 Subject: [PATCH] gnrc_netdev2: fix gnrc_netdev2_set_tx_feedback assert. --- sys/include/net/gnrc/netdev2.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/include/net/gnrc/netdev2.h b/sys/include/net/gnrc/netdev2.h index d4cf3bbffe..decc979e67 100644 --- a/sys/include/net/gnrc/netdev2.h +++ b/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);