Explorar o código

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

Scott Bezek %!s(int64=3) %!d(string=hai) anos
pai
achega
604f21dcb6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      firmware/src/interface_task.cpp

+ 1 - 1
firmware/src/interface_task.cpp

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