mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-11-25 12:46:41 +00:00
snled27351: fix missing i2c_init()
(#22446)
This commit is contained in:
parent
4a98466ef3
commit
76dc52c5c8
@ -103,6 +103,8 @@ bool snled27351_write_pwm_buffer(uint8_t addr, uint8_t *pwm_buffer) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void snled27351_init_drivers(void) {
|
void snled27351_init_drivers(void) {
|
||||||
|
i2c_init();
|
||||||
|
|
||||||
snled27351_init(SNLED27351_I2C_ADDRESS_1);
|
snled27351_init(SNLED27351_I2C_ADDRESS_1);
|
||||||
#if defined(SNLED27351_I2C_ADDRESS_2)
|
#if defined(SNLED27351_I2C_ADDRESS_2)
|
||||||
snled27351_init(SNLED27351_I2C_ADDRESS_2);
|
snled27351_init(SNLED27351_I2C_ADDRESS_2);
|
||||||
|
@ -102,6 +102,8 @@ bool snled27351_write_pwm_buffer(uint8_t addr, uint8_t *pwm_buffer) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void snled27351_init_drivers(void) {
|
void snled27351_init_drivers(void) {
|
||||||
|
i2c_init();
|
||||||
|
|
||||||
snled27351_init(SNLED27351_I2C_ADDRESS_1);
|
snled27351_init(SNLED27351_I2C_ADDRESS_1);
|
||||||
#if defined(SNLED27351_I2C_ADDRESS_2)
|
#if defined(SNLED27351_I2C_ADDRESS_2)
|
||||||
snled27351_init(SNLED27351_I2C_ADDRESS_2);
|
snled27351_init(SNLED27351_I2C_ADDRESS_2);
|
||||||
|
Loading…
Reference in New Issue
Block a user