From 9d4bda2edcf0e7c2a03aa908321293a53361d258 Mon Sep 17 00:00:00 2001 From: Ian Morris Date: Wed, 1 May 2019 11:29:03 -0700 Subject: [PATCH] ble_mesh_light/ws2812: Only compile if USE_NEOPIXEL is set. Without this builds for platforms other than NRFx fail even when USE_NEOPIXEL is set to 0 due to inclusion of NRFx header files. --- apps/blemesh_light/src/ws2812.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/blemesh_light/src/ws2812.c b/apps/blemesh_light/src/ws2812.c index ddc6ed397..f27a182b9 100644 --- a/apps/blemesh_light/src/ws2812.c +++ b/apps/blemesh_light/src/ws2812.c @@ -16,6 +16,10 @@ * specific language governing permissions and limitations * under the License. */ + +#include "syscfg/syscfg.h" + +#if (MYNEWT_VAL(USE_NEOPIXEL)) #include #include @@ -131,3 +135,4 @@ ws2812_write(const uint32_t *rgb) return 0; } +#endif