mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-08-25 11:19:57 +00:00
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:
committed by
Michał Narajowski
parent
35cfbbe746
commit
9d4bda2edc
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user