You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by na...@apache.org on 2019/05/15 21:12:55 UTC
[mynewt-nimble] branch master updated: ble_mesh_light/ws2812: Only
compile if USE_NEOPIXEL is set.
This is an automated email from the ASF dual-hosted git repository.
naraj pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git
The following commit(s) were added to refs/heads/master by this push:
new 9d4bda2 ble_mesh_light/ws2812: Only compile if USE_NEOPIXEL is set.
9d4bda2 is described below
commit 9d4bda2edcf0e7c2a03aa908321293a53361d258
Author: Ian Morris <ia...@outlook.com>
AuthorDate: Wed May 1 11:29:03 2019 -0700
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 ddc6ed3..f27a182 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 <assert.h>
#include <string.h>
@@ -131,3 +135,4 @@ ws2812_write(const uint32_t *rgb)
return 0;
}
+#endif