No need (and pointless) to call SM16716_Init until color updates, iff using sel pin
This commit is contained in:
parent
99b027852b
commit
817d0af598
@ -535,9 +535,11 @@ void LightInit(void)
|
||||
if (sm16716_pin_sel < 99) {
|
||||
pinMode(sm16716_pin_sel, OUTPUT);
|
||||
digitalWrite(sm16716_pin_sel, LOW);
|
||||
// no need to call SM16716_Init here, it will be called after sel goes HIGH
|
||||
} else {
|
||||
// no sel pin means you have an 'always on' chip, so init right away
|
||||
SM16716_Init();
|
||||
}
|
||||
|
||||
SM16716_Init();
|
||||
}
|
||||
#endif // ifdef USE_SM16716
|
||||
else {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user