RedBearLab/nRF8001 — pull request #2 by samthetechie (2014-06-10 16:44:16+00:00)
Title: patch to prevent compilation error, examples now compile using arduioo 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:
* RedBearLab/BLEShield#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;