Skip to content

Commit 0470f74

Browse files
authored
Update ESP32 Example with normal mode
the listen only is a special case, normal mode should be used by default.
1 parent f56b2a7 commit 0470f74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/EMUcan_ESP32/EMUcan_ESP32.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ void setup() {
3131
Serial.println("------- CAN Read ----------");
3232

3333
// Initialize configuration structures using macro initializers
34-
twai_general_config_t g_config = TWAI_GENERAL_CONFIG_DEFAULT((gpio_num_t)TX_PIN, (gpio_num_t)RX_PIN, TWAI_MODE_LISTEN_ONLY);
34+
twai_general_config_t g_config = TWAI_GENERAL_CONFIG_DEFAULT((gpio_num_t)TX_PIN, (gpio_num_t)RX_PIN, TWAI_MODE_NORMAL);
3535
twai_timing_config_t t_config = TWAI_TIMING_CONFIG_500KBITS(); //Look in the api-reference for other speed sets.
3636
twai_filter_config_t f_config = TWAI_FILTER_CONFIG_ACCEPT_ALL();
3737

0 commit comments

Comments
 (0)