I got the ble_app_lbs example working using SDK 8.0.0, and am now trying to integrate it into my existing project which was based off of ble_app_rscs using SDK 11.0.0.
I've added the ble_lbs.c and .h files to the project and the relevant code in the main file. However I can't get it to compile, it can't find 'led_write_handler':
*** Using Compiler 'V5.06 update 5 (build 528)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin'
Build target 'nrf51422_xxac_s130'
compiling main.c...
..\..\..\main.c(617): error: #20: identifier "led_write_handler" is undefined
init.led_write_handler = led_write_handler;
..\..\..\main.c(676): warning: #177-D: function "led_write_handler" was declared but never referenced
static void led_write_handler(ble_lbs_t * p_lbs, uint8_t led_state)
..\..\..\main.c: 1 warning, 1 error
".\_build\nrf51422_xxac_s130.axf" - 1 Error(s), 1 Warning(s).
Target not created.
Build Time Elapsed: 00:00:01
However, led_write_handler is properly defined in the header file, and if I do a search all Keil finds the led_write_handler in both the c and h files, so I know they are being included correctly.
I also tried porting the entirety of ble_lbs.c into my main loop but I get the same error.
Any ideas?