File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
components/driver/twai/include/driver Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ extern "C" {
3333 .clkout_io = TWAI_IO_UNUSED, .bus_off_io = TWAI_IO_UNUSED, \
3434 .tx_queue_len = 5, .rx_queue_len = 5, \
3535 .alerts_enabled = TWAI_ALERT_NONE, .clkout_divider = 0, \
36- .intr_flags = ESP_INTR_FLAG_LEVEL1}
36+ .intr_flags = ESP_INTR_FLAG_LEVEL1, .general_flags = {0} }
3737
3838/**
3939 * @brief Initializer macro for general configuration structure.
@@ -119,6 +119,7 @@ typedef struct {
119119 By this approach, the system can power off TWAI's power domain.
120120 This can save power, but at the expense of more RAM being consumed. */
121121 } general_flags ; /**< General flags */
122+ // Ensure TWAI_GENERAL_CONFIG_DEFAULT_V2 is updated and in order if new fields are added
122123} twai_general_config_t ;
123124
124125/**
You can’t perform that action at this time.
0 commit comments