From 604f21dcb6fb84714156ddada2d08776f55822b0 Mon Sep 17 00:00:00 2001 From: Scott Bezek Date: Fri, 27 May 2022 18:57:07 -0700 Subject: [PATCH] Fix compilation error if SK_ALS=0 but PIN_SDA and PIN_SCL are set --- firmware/src/interface_task.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/src/interface_task.cpp b/firmware/src/interface_task.cpp index 708c7a5..c6ac121 100644 --- a/firmware/src/interface_task.cpp +++ b/firmware/src/interface_task.cpp @@ -154,7 +154,7 @@ void InterfaceTask::run() { FastLED.addLeds(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