From b2df839ed3a6e9190606448136f218607656351e Mon Sep 17 00:00:00 2001 From: Pete Schwamb Date: Wed, 3 May 2017 10:49:55 -0400 Subject: [PATCH] fix led init for boards with no leds --- src/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 5a96820..9a3d43d 100644 --- a/src/main.c +++ b/src/main.c @@ -123,10 +123,11 @@ int main(void) mesh_control_init(); +#if LEDS_NUMBER > 0 nrf_gpio_cfg_output(LED_START + LED_GREEN); nrf_gpio_cfg_output(LED_START + LED_RED); nrf_gpio_cfg_output(LED_START + LED_BLUE); - +#endif /* Enable Softdevice (including sd_ble before framework */ SOFTDEVICE_HANDLER_INIT(MESH_CLOCK_SRC, NULL);