Skip to content

Commit a87ba21

Browse files
committed
Merge pull request #57 from NordicSemiconductor/Fix-for-last-file
Fix for last .ino file which was missed in the last pull request
2 parents f7ab595 + 2241671 commit a87ba21

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

libraries/BLE/examples/ble_temperature_broadcast/ble_temperature_broadcast.ino

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
* The format used is IEEE 11073-20601 FLOAT
4242
*/
4343
#include <SPI.h>
44+
#include <EEPROM.h>
4445
#include <avr/sleep.h>
4546
#include <avr/power.h>
4647

@@ -60,7 +61,7 @@
6061

6162
#define TEMPERATURE_NUM_SAMPLES 5
6263

63-
static hal_aci_data_t setup_msgs[NB_SETUP_MESSAGES] PROGMEM = SETUP_MESSAGES_CONTENT;
64+
static const hal_aci_data_t setup_msgs[NB_SETUP_MESSAGES] PROGMEM = SETUP_MESSAGES_CONTENT;
6465
// aci_struct that will contain
6566
// total initial credits
6667
// current credit
@@ -284,7 +285,7 @@ void setup(void)
284285
aci_state.aci_setup_info.services_pipe_type_mapping = NULL;
285286
}
286287
aci_state.aci_setup_info.number_of_pipes = NUMBER_OF_PIPES;
287-
aci_state.aci_setup_info.setup_msgs = setup_msgs;
288+
aci_state.aci_setup_info.setup_msgs = (hal_aci_data_t*) setup_msgs;
288289
aci_state.aci_setup_info.num_setup_msgs = NB_SETUP_MESSAGES;
289290

290291
/*

0 commit comments

Comments
 (0)