summaryrefslogtreecommitdiff
path: root/drivers/led/issi/is31fl3733-simple.c
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2023-10-04 20:12:50 +1100
committerGitHub <noreply@github.com>2023-10-04 20:12:50 +1100
commitd99dbe4d56a5d414b8d131bf703257172af91b70 (patch)
treefa8b7212734413a48e3232fdc45f30047e62fa3d /drivers/led/issi/is31fl3733-simple.c
parentc0f16be50fec33cdb30386ac512efb900f3f7470 (diff)
Update ISSI LED types (#22099)
Diffstat (limited to 'drivers/led/issi/is31fl3733-simple.c')
-rw-r--r--drivers/led/issi/is31fl3733-simple.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/led/issi/is31fl3733-simple.c b/drivers/led/issi/is31fl3733-simple.c
index 6f7a8af79c..e94b4c7d78 100644
--- a/drivers/led/issi/is31fl3733-simple.c
+++ b/drivers/led/issi/is31fl3733-simple.c
@@ -173,9 +173,9 @@ void is31fl3733_init(uint8_t addr, uint8_t sync) {
}
void is31fl3733_set_value(int index, uint8_t value) {
- is31_led led;
+ is31fl3733_led_t led;
if (index >= 0 && index < LED_MATRIX_LED_COUNT) {
- memcpy_P(&led, (&g_is31_leds[index]), sizeof(led));
+ memcpy_P(&led, (&g_is31fl3733_leds[index]), sizeof(led));
if (g_pwm_buffer[led.driver][led.v] == value) {
return;
@@ -192,8 +192,8 @@ void is31fl3733_set_value_all(uint8_t value) {
}
void is31fl3733_set_led_control_register(uint8_t index, bool value) {
- is31_led led;
- memcpy_P(&led, (&g_is31_leds[index]), sizeof(led));
+ is31fl3733_led_t led;
+ memcpy_P(&led, (&g_is31fl3733_leds[index]), sizeof(led));
uint8_t control_register = led.v / 8;
uint8_t bit_value = led.v % 8;