Change LED pin indicating BLE advertisement

Hi,

I want to change the LED pin that blinks to indicate BLE advertisement to pin 6. I have changed the LED_1 and LED_STOP in pca10040.h to 6:

I have also set NRF_LOG_BACKEND_UART_ENABLED in sdk_config.h to 0.

However, the LED only blinks 1 after initialization and then turns off until it BLE connects to my phone (then turns on). I want the LED to blink during the whole advertisement. Do you know why it blinks only once then stops? Are there any other places in the code that I should change to change the LED pin?

Thanks,

Han

Parents Reply Children
Related