NordicSemiconductor/ble-sdk-arduino — pull request #4 by samthetechie (2014-06-10 16:45:12+00:00)
Title: patch to prevent compilation error, examples now compile using arduino 1...

...:1.0.5+dfsg2-2 (which is the version in the ubuntu and debian repositories).

Note: this bug has already been documented in various places:
* https://github.com/RedBearLab/BLEShield/pull/5
* https://redbearlab.zendesk.com/entries/23440476-Getting-Started
* http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&t=38003

find . -name "*.ino" -print | xargs subl
find . -name "*.cpp" -print | xargs subl

find:
static hal_aci_data_t setup_msgs[NB_SETUP_MESSAGES] PROGMEM

replace:
static const hal_aci_data_t setup_msgs[NB_SETUP_MESSAGES] PROGMEM

find:
aci_state.aci_setup_info.setup_msgs = setup_msgs;

replace:
aci_state.aci_setup_info.setup_msgs = (hal_aci_data_t*)setup_msgs;