esp_dmx
esp_dmx copied to clipboard
Add proper checks to exclude code for older ESP-IDF versions
Claude thinks this is the correct fix ...
The file already has the proper includes for IDF V5, but the actual implementation in the dmx_uart_init and dmx_uart_deinit functions still uses the old API. The attached file shows the CORRECT version. Let me replace the old implementation with the IDF V5-compatible version from the attachment: Now let me replace the entire dmx_uart_init and dmx_uart_deinit functions with the proper IDF V5-compatible versions: The code is the same. The issue is that in IDF V5.2+, the uart_periph_signal structure doesn't have a .module member. Let me check what members it does have and fix it properly: