From b2f9e2c226e7c26abaf22228b2aa396fb85df6e3 Mon Sep 17 00:00:00 2001 From: Marian Buschsieweke Date: Tue, 16 Nov 2021 20:56:58 +0100 Subject: [PATCH] cpu/esp32: fix wrong control flow --- cpu/esp32/periph/can.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpu/esp32/periph/can.c b/cpu/esp32/periph/can.c index d38b3da7e6..c9285e5390 100644 --- a/cpu/esp32/periph/can.c +++ b/cpu/esp32/periph/can.c @@ -786,9 +786,9 @@ static void IRAM_ATTR _esp_can_intr_handler(void *arg) DEBUG("%s error passive interrupt %d %d\n", __func__, CAN.tx_error_counter_reg.byte, CAN.rx_error_counter_reg.byte); + /* save the event */ + dev->events |= ESP_CAN_EVENT_ERROR_PASSIVE; } - /* save the event */ - dev->events |= ESP_CAN_EVENT_ERROR_PASSIVE; } /*