snled27351: fix missing `i2c_init()` (#22446)

master
Ryan 2023-11-11 14:09:03 +11:00 committed by GitHub
parent 4a98466ef3
commit 76dc52c5c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -103,6 +103,8 @@ bool snled27351_write_pwm_buffer(uint8_t addr, uint8_t *pwm_buffer) {
}
void snled27351_init_drivers(void) {
i2c_init();
snled27351_init(SNLED27351_I2C_ADDRESS_1);
#if defined(SNLED27351_I2C_ADDRESS_2)
snled27351_init(SNLED27351_I2C_ADDRESS_2);

View File

@ -102,6 +102,8 @@ bool snled27351_write_pwm_buffer(uint8_t addr, uint8_t *pwm_buffer) {
}
void snled27351_init_drivers(void) {
i2c_init();
snled27351_init(SNLED27351_I2C_ADDRESS_1);
#if defined(SNLED27351_I2C_ADDRESS_2)
snled27351_init(SNLED27351_I2C_ADDRESS_2);