Fix compilation error if SK_ALS=0 but PIN_SDA and PIN_SCL are set

This commit is contained in:
Scott Bezek 2022-05-27 18:57:07 -07:00
parent 0b38eac75d
commit 604f21dcb6

View File

@ -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