1
0
Fork 0

[Core] Optimisation - Add RGB LED colour set check in drivers (#21134)

This commit is contained in:
Xelus22 2023-06-08 11:58:53 +10:00 committed by GitHub
parent 9a6056d09c
commit d1d0925cf9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 41 additions and 1 deletions

View file

@ -196,6 +196,9 @@ void IS31FL3733_set_value(int index, uint8_t value) {
if (index >= 0 && index < LED_MATRIX_LED_COUNT) {
is31_led led = g_is31_leds[index];
if (g_pwm_buffer[led.driver][led.v] == value) {
return;
}
g_pwm_buffer[led.driver][led.v] = value;
g_pwm_buffer_update_required[led.driver] = true;
}