Skip to content

Commit ac9d336

Browse files
committed
nrf: make neopixel support optional
Add a conditional around the call to neopixel_write(), allowing us to build for nrf without neopixel support. Signed-off-by: Sean Cross <[email protected]>
1 parent 05b5356 commit ac9d336

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ports/nrf/supervisor/port.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,10 @@ void reset_port(void) {
104104
i2c_reset();
105105
spi_reset();
106106
uart_reset();
107+
108+
#if CIRCUITPY_NEOPIXEL_WRITE
107109
neopixel_write_reset();
110+
#endif
108111

109112
#if CIRCUITPY_AUDIOBUSIO
110113
i2s_reset();

0 commit comments

Comments
 (0)