1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 04:52:59 +01:00

can: fix fall through error

This commit is contained in:
Vincent Dupont 2018-01-08 18:07:31 +01:00
parent 87e3f10e8b
commit fb393905dd
2 changed files with 2 additions and 1 deletions

View File

@ -174,7 +174,7 @@ int conn_can_isotp_send(conn_can_isotp_t *conn, const void *buf, size_t size, in
if (msg.content.ptr == conn) {
ret = -EIO;
}
/* No break */
/* Fall through */
case CAN_MSG_TX_CONFIRMATION:
#ifdef MODULE_CONN_CAN_ISOTP_MULTI
if (msg.content.ptr != conn) {

View File

@ -609,6 +609,7 @@ static void _isotp_rx_timeout_task(struct isotp *isotp)
case ISOTP_SENDING_FC:
DEBUG("_isotp_rx_timeout_task: FC tx conf timeout\n");
raw_can_abort(isotp->entry.ifnum, isotp->rx.tx_handle);
/* Fall through */
case ISOTP_WAIT_CF:
DEBUG("_isotp_rx_timeout_task: free rx buf\n");
gnrc_pktbuf_release(isotp->rx.snip);