mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-15 01:23:49 +01:00
gnrc/lwmac: ignore implicit fallthrough error by GCC 7
This commit is contained in:
parent
15f73e76ad
commit
b3fde3429c
@ -572,26 +572,25 @@ static void _tx_management(gnrc_netif_t *netif)
|
||||
gnrc_lwmac_tx_state_t state_tx = netif->mac.tx.state;
|
||||
|
||||
switch (state_tx) {
|
||||
case GNRC_LWMAC_TX_STATE_STOPPED: {
|
||||
case GNRC_LWMAC_TX_STATE_STOPPED:
|
||||
_tx_management_stopped(netif);
|
||||
break;
|
||||
}
|
||||
case GNRC_LWMAC_TX_STATE_FAILED: {
|
||||
|
||||
case GNRC_LWMAC_TX_STATE_FAILED:
|
||||
/* If transmission failure, do not try burst transmissions and quit other
|
||||
* transmission attempts in this cycle for collision avoidance */
|
||||
gnrc_lwmac_set_tx_continue(netif, false);
|
||||
gnrc_lwmac_set_quit_tx(netif, true);
|
||||
/* falls through */
|
||||
/* TX packet will therefore be dropped. No automatic resending here,
|
||||
* we did our best.
|
||||
*/
|
||||
}
|
||||
case GNRC_LWMAC_TX_STATE_SUCCESSFUL: {
|
||||
/* TX packet will be dropped, no automatic resending here. */
|
||||
/* Intentionally falls through */
|
||||
|
||||
case GNRC_LWMAC_TX_STATE_SUCCESSFUL:
|
||||
_tx_management_success(netif);
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
gnrc_lwmac_tx_update(netif);
|
||||
break;
|
||||
}
|
||||
|
||||
/* If state has changed, reschedule main state machine */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user