diff options
author | QMK Bot <hello@qmk.fm> | 2020-10-04 20:54:31 +0000 |
---|---|---|
committer | QMK Bot <hello@qmk.fm> | 2020-10-04 20:54:31 +0000 |
commit | c8cff1489a82bb61266ce32750895c6935b256a3 (patch) | |
tree | b422e2c2365bdbafa8cf925795da6063d637baaa /quantum/rgb_matrix_drivers.c | |
parent | c4f910b1b3b8b758093592d50c4c1b7c137b853f (diff) |
format code according to conventions [skip ci]
Diffstat (limited to 'quantum/rgb_matrix_drivers.c')
-rw-r--r-- | quantum/rgb_matrix_drivers.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/quantum/rgb_matrix_drivers.c b/quantum/rgb_matrix_drivers.c index 8f670f9a33..0685a34753 100644 --- a/quantum/rgb_matrix_drivers.c +++ b/quantum/rgb_matrix_drivers.c @@ -31,9 +31,9 @@ static void init(void) { i2c_init(); # ifdef IS31FL3731 IS31FL3731_init(DRIVER_ADDR_1); -# ifdef DRIVER_ADDR_2 +# ifdef DRIVER_ADDR_2 IS31FL3731_init(DRIVER_ADDR_2); -# endif +# endif # elif defined(IS31FL3733) IS31FL3733_init(DRIVER_ADDR_1, 0); # elif defined(IS31FL3737) @@ -57,9 +57,9 @@ static void init(void) { // This actually updates the LED drivers # ifdef IS31FL3731 IS31FL3731_update_led_control_registers(DRIVER_ADDR_1, 0); -# ifdef DRIVER_ADDR_2 +# ifdef DRIVER_ADDR_2 IS31FL3731_update_led_control_registers(DRIVER_ADDR_2, 1); -# endif +# endif # elif defined(IS31FL3733) IS31FL3733_update_led_control_registers(DRIVER_ADDR_1, 0); IS31FL3733_update_led_control_registers(DRIVER_ADDR_2, 1); @@ -73,9 +73,9 @@ static void init(void) { # ifdef IS31FL3731 static void flush(void) { IS31FL3731_update_pwm_buffers(DRIVER_ADDR_1, 0); -# ifdef DRIVER_ADDR_2 +# ifdef DRIVER_ADDR_2 IS31FL3731_update_pwm_buffers(DRIVER_ADDR_2, 1); -# endif +# endif } const rgb_matrix_driver_t rgb_matrix_driver = { |