diff options
author | Ryan <fauxpark@gmail.com> | 2023-11-11 14:09:03 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-11 14:09:03 +1100 |
commit | 76dc52c5c86b4da688ef3b371e941a3434646c1d (patch) | |
tree | a603a324b7d2809df1bd44b5f62ee61e46f9bda8 | |
parent | 4a98466ef32087989fe03136e7e3b72bcccab178 (diff) |
snled27351: fix missing `i2c_init()` (#22446)
-rw-r--r-- | drivers/led/snled27351-simple.c | 2 | ||||
-rw-r--r-- | drivers/led/snled27351.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/drivers/led/snled27351-simple.c b/drivers/led/snled27351-simple.c index 847cdb7715..6d504794a9 100644 --- a/drivers/led/snled27351-simple.c +++ b/drivers/led/snled27351-simple.c @@ -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); diff --git a/drivers/led/snled27351.c b/drivers/led/snled27351.c index de0c7b3239..4e4067854e 100644 --- a/drivers/led/snled27351.c +++ b/drivers/led/snled27351.c @@ -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); |