Repository navigation
fix for #4298 - no conflict with DMX output - #5096
Conversation
WalkthroughA compile-time guard that prevented compilation when WLED_ENABLE_DMX was defined has been removed from the audio reactive module. This eliminates the previous build-time incompatibility between audio reactive and DMX Out functionality without altering runtime logic. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
💤 Files with no reviewable changes (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
do you know why this was added in the first place? |
DMX ? no idea, DMX never made any sense to me 😝 AR vs. DMX serial out? You can find a lengthy discussion in #4298. It looks like some users had crashes when running both DMX-serial out and audioreactive on the same board, so this was added as a precaution, until we understand better what's going on. |
|
@netmindz It might be good to also try my last comment in #4298 (comment) Lines 15 to 19 in 271e9ac
Something like the below snippet could help to align dmx output rates with LEDs rendering times static unsigned last_dmx_time = millis();
if (millis() - last_dmx_time < strip.getFrameTime()) return; // you can also try "10" or whatever the minumum frametime for DMX is
last_dmx_time = millis();Important: needs testing with real DMX hardware, to verify that DMX timing is still correct. |
fix for wled#4298 - no conflict with DMX output Removes a compile-time error that was blocking compilation when DMX output mode was enabled, allowing successful builds with DMX support. Important: this fix does not address the output buffer congestion problems that usually make WLED unstable with >100 LEDs on DMX Serial output. It only removes the compile-time blocker in audioreactive.
Summary by CodeRabbit