1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-15 09:33:50 +01:00

gnrc/lwmac: ignore implicit fallthrough error by GCC 7

This commit is contained in:
smlng 2018-01-24 22:04:44 +01:00
parent 15f73e76ad
commit b3fde3429c

View File

@ -572,26 +572,25 @@ static void _tx_management(gnrc_netif_t *netif)
gnrc_lwmac_tx_state_t state_tx = netif->mac.tx.state; gnrc_lwmac_tx_state_t state_tx = netif->mac.tx.state;
switch (state_tx) { switch (state_tx) {
case GNRC_LWMAC_TX_STATE_STOPPED: { case GNRC_LWMAC_TX_STATE_STOPPED:
_tx_management_stopped(netif); _tx_management_stopped(netif);
break; break;
}
case GNRC_LWMAC_TX_STATE_FAILED: { case GNRC_LWMAC_TX_STATE_FAILED:
/* If transmission failure, do not try burst transmissions and quit other /* If transmission failure, do not try burst transmissions and quit other
* transmission attempts in this cycle for collision avoidance */ * transmission attempts in this cycle for collision avoidance */
gnrc_lwmac_set_tx_continue(netif, false); gnrc_lwmac_set_tx_continue(netif, false);
gnrc_lwmac_set_quit_tx(netif, true); gnrc_lwmac_set_quit_tx(netif, true);
/* falls through */ /* TX packet will be dropped, no automatic resending here. */
/* TX packet will therefore be dropped. No automatic resending here, /* Intentionally falls through */
* we did our best.
*/ case GNRC_LWMAC_TX_STATE_SUCCESSFUL:
}
case GNRC_LWMAC_TX_STATE_SUCCESSFUL: {
_tx_management_success(netif); _tx_management_success(netif);
break; break;
}
default: default:
gnrc_lwmac_tx_update(netif); gnrc_lwmac_tx_update(netif);
break;
} }
/* If state has changed, reschedule main state machine */ /* If state has changed, reschedule main state machine */