Skip to content

Commit

Permalink
fix(twai): TWAI_GENERAL_CONFIG_DEFAULT_V2 initialize general_flags
Browse files Browse the repository at this point in the history
  • Loading branch information
nebkat committed Jan 5, 2025
1 parent b5ac4fb commit 610e555
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/driver/twai/include/driver/twai.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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;

/**
Expand Down

0 comments on commit 610e555

Please sign in to comment.