Skip to content

Commit

Permalink
Merge pull request #55 from ketile/Issue-#14
Browse files Browse the repository at this point in the history
Fix for issue #14
  • Loading branch information
daviddedwin committed Feb 27, 2015
2 parents 3738c99 + aae4652 commit 0f720b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ However this removes the need to do the setup of the nRF8001 on every reset.
#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;

// aci_struct that will contain
// total initial credits
Expand Down Expand Up @@ -174,7 +174,7 @@ void setup(void)
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;

/*
Expand Down
5 changes: 1 addition & 4 deletions libraries/BLE/hal_platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,7 @@
//For Arduino this AVR specific library has to be used for reading from Flash memory
#include <avr/pgmspace.h>
#include "Arduino.h"
#ifdef PROGMEM
#undef PROGMEM
#define PROGMEM __attribute__(( section(".progmem.data") ))
#endif

#elif defined(__PIC32MX__)
//For Chipkit add the following libraries.
#include <stdint.h>
Expand Down

0 comments on commit 0f720b6

Please sign in to comment.