diff --git a/arch/risc-v/src/common/espressif/esp_twai.c b/arch/risc-v/src/common/espressif/esp_twai.c index 0fc2151bb4..11ffc26f07 100644 --- a/arch/risc-v/src/common/espressif/esp_twai.c +++ b/arch/risc-v/src/common/espressif/esp_twai.c @@ -251,7 +251,7 @@ static void esp_twai_reset(struct can_dev_s *dev) flags = enter_critical_section(); ret = twai_hal_init(&priv->ctx, &hal_config); - assert(ret); + ASSERT(ret); twai_hal_configure(&priv->ctx, &priv->t_config, &f_config, TWAI_DEFAULT_INTERRUPTS, 0);