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.
This commit is contained in:
Ian Morris
2019-05-15 23:12:49 +02:00
committed by Michał Narajowski
parent 35cfbbe746
commit 9d4bda2edc
+5
View File
@@ -16,6 +16,10 @@
* specific language governing permissions and limitations
* under the License.
*/
#include "syscfg/syscfg.h"
#if (MYNEWT_VAL(USE_NEOPIXEL))
#include <assert.h>
#include <string.h>
@@ -131,3 +135,4 @@ ws2812_write(const uint32_t *rgb)
return 0;
}
#endif