mirror of
https://github.com/scottbez1/smartknob.git
synced 2025-09-26 23:09:27 +08:00
Fix compilation error if SK_ALS=0 but PIN_SDA and PIN_SCL are set
This commit is contained in:
parent
0b38eac75d
commit
604f21dcb6
@ -154,7 +154,7 @@ void InterfaceTask::run() {
|
||||
FastLED.addLeds<SK6812, PIN_LED_DATA, GRB>(leds, NUM_LEDS);
|
||||
#endif
|
||||
|
||||
#if PIN_SDA >= 0 && PIN_SCL >= 0
|
||||
#if SK_ALS && PIN_SDA >= 0 && PIN_SCL >= 0
|
||||
Wire.begin(PIN_SDA, PIN_SCL);
|
||||
Wire.setClock(400000);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user