static void services_init(void)
{
uint32_t err_code;
ble_lbs_init_t init;
init.led_write_handler = led_write_handler; //Assigns handle to LED set/clear call from BT Controller
err_code = ble_lbs_init(&m_lbs, &init, bdata);
APP_ERROR_CHECK(err_code);
}
after executing the line init.led_write_handler = led_write_handler; if I look at the value of init.led_write_handler it's equal to 0. Is this normal? I was expecting a non-zero value for the handler.
When I write to the LED in the Master Control Panel, everything looks normal, but I have a break point in the function void led_write_handler(....), and it never breaks. Like the scheduler is not calling the function. Any thoughts?
Thanks