From 610e555f4dcd13a21c881b0ad0a04bf5236b9266 Mon Sep 17 00:00:00 2001 From: Nebojsa Cvetkovic Date: Sun, 5 Jan 2025 13:38:57 +0000 Subject: [PATCH] fix(twai): TWAI_GENERAL_CONFIG_DEFAULT_V2 initialize general_flags --- components/driver/twai/include/driver/twai.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/driver/twai/include/driver/twai.h b/components/driver/twai/include/driver/twai.h index 6cde097f0cd..84a5ecfa5d0 100644 --- a/components/driver/twai/include/driver/twai.h +++ b/components/driver/twai/include/driver/twai.h @@ -33,7 +33,7 @@ extern "C" { .clkout_io = TWAI_IO_UNUSED, .bus_off_io = TWAI_IO_UNUSED, \ .tx_queue_len = 5, .rx_queue_len = 5, \ .alerts_enabled = TWAI_ALERT_NONE, .clkout_divider = 0, \ - .intr_flags = ESP_INTR_FLAG_LEVEL1} + .intr_flags = ESP_INTR_FLAG_LEVEL1, .general_flags = {0}} /** * @brief Initializer macro for general configuration structure. @@ -119,6 +119,7 @@ typedef struct { By this approach, the system can power off TWAI's power domain. This can save power, but at the expense of more RAM being consumed. */ } general_flags; /**< General flags */ + // Ensure TWAI_GENERAL_CONFIG_DEFAULT_V2 is updated and in order if new fields are added } twai_general_config_t; /**