Skip to content

Commit

Permalink
Fix pca9632_set_led_color lost i2c connection (MarlinFirmware#11530)
Browse files Browse the repository at this point in the history
  • Loading branch information
soimy authored and thinkyhead committed Aug 12, 2018
1 parent 7762565 commit 7b0a8e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Marlin/pca9632.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ static void PCA9632_WriteAllRegisters(const byte addr, const byte regadd, const
#endif

void pca9632_set_led_color(const LEDColor &color) {
Wire.begin();
if (!PCA_init) {
PCA_init = 1;
Wire.begin();
PCA9632_WriteRegister(PCA9632_ADDRESS,PCA9632_MODE1, PCA9632_MODE1_VALUE);
PCA9632_WriteRegister(PCA9632_ADDRESS,PCA9632_MODE2, PCA9632_MODE2_VALUE);
}
Expand Down

0 comments on commit 7b0a8e8

Please sign in to comment.