Skip to content

Commit

Permalink
fix led init for boards with no leds
Browse files Browse the repository at this point in the history
  • Loading branch information
ps2 committed May 3, 2017
1 parent b88482d commit b2df839
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b2df839

Please sign in to comment.