-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
fix for #4298 - no conflict with DMX output #5096
New issue
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
base: main
Are you sure you want to change the base?
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. |
Summary by CodeRabbit