-
-
Notifications
You must be signed in to change notification settings - Fork 38.8k
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
[Bug] rgb matrix effect bug. #23850
Labels
Comments
14 tasks
I'm curious which controller this is for. I can't replicate the MCU crash using an STM32F303 (using a moonlander, which does have a bunch of NO_LED values) |
same as #23348 |
And, This will slove it. Maybe not the best solution. void rgb_matrix_set_color(int index, uint8_t red, uint8_t green, uint8_t blue) {
if (index >= RGB_MATRIX_LED_COUNT) {
return;
}
rgb_matrix_driver.set_color(index, red, green, blue);
} |
This problem was generated randomly because this lamp effect used random8(), and it may be that you were not able to reproduce it for this reason. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the Bug
https://github.com/qmk/qmk_firmware/blob/master/quantum/rgb_matrix/animations/pixel_fractal_anim.h
This RGB effect does not limit the NO_LED and will cause access to the wild pointer, which will cause the MCU to malfunction.
Keyboard Used
No response
Link to product page (if applicable)
No response
Operating System
No response
qmk doctor Output
No response
Is AutoHotKey / Karabiner installed
Other keyboard-related software installed
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: