We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bus_handle = nullptr; gives a build error if the IDF is lower than 5.2. To fix it, check the IDF version:
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 2, 0) bus_handle = nullptr; #endif
esp32_can_buildin.cpp:
ESP32CAN::ESP32CAN(gpio_num_t rxPin, gpio_num_t txPin, uint8_t busNumber) : CAN_COMMON(32) { twai_general_cfg.rx_io = rxPin; twai_general_cfg.tx_io = txPin; cyclesSinceTraffic = 0; readyForTraffic = false; twai_general_cfg.tx_queue_len = BI_TX_BUFFER_SIZE; twai_general_cfg.rx_queue_len = 6; rxBufferSize = BI_RX_BUFFER_SIZE; #if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 2, 0) bus_handle = nullptr; twai_general_cfg.controller_id = busNumber; #endif } ESP32CAN::ESP32CAN() : CAN_COMMON(BI_NUM_FILTERS) { twai_general_cfg.tx_queue_len = BI_TX_BUFFER_SIZE; twai_general_cfg.rx_queue_len = 6; #if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 2, 0) bus_handle = nullptr; #endif
The text was updated successfully, but these errors were encountered:
No branches or pull requests
bus_handle = nullptr; gives a build error if the IDF is lower than 5.2.
To fix it, check the IDF version:
esp32_can_buildin.cpp:
The text was updated successfully, but these errors were encountered: