diff --git a/Arduino/libraries/RBL_nRF8001/RBL_nRF8001.cpp b/Arduino/libraries/RBL_nRF8001/RBL_nRF8001.cpp index 3545e4e..2c42c6f 100644 --- a/Arduino/libraries/RBL_nRF8001/RBL_nRF8001.cpp +++ b/Arduino/libraries/RBL_nRF8001/RBL_nRF8001.cpp @@ -22,7 +22,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI #endif /* Store the setup for the nRF8001 in the flash of the AVR to save on RAM */ -static hal_aci_data_t setup_msgs[NB_SETUP_MESSAGES] PROGMEM = SETUP_MESSAGES_CONTENT; +static const hal_aci_data_t setup_msgs[NB_SETUP_MESSAGES] PROGMEM = SETUP_MESSAGES_CONTENT; #if defined(BLEND_MICRO) static char device_name[11] = "BlendMicro"; @@ -110,7 +110,7 @@ void ble_begin() aci_state.aci_setup_info.services_pipe_type_mapping = NULL; } aci_state.aci_setup_info.number_of_pipes = NUMBER_OF_PIPES; - aci_state.aci_setup_info.setup_msgs = setup_msgs; + aci_state.aci_setup_info.setup_msgs = (hal_aci_data_t*)setup_msgs; aci_state.aci_setup_info.num_setup_msgs = NB_SETUP_MESSAGES; /*