 
  */
 #include <SPI.h>
-#include <avr/pgmspace.h>
-#undef PROGMEM
-#define PROGMEM __attribute__(( section(".progmem.data") ))
-
 #include <ble_system.h>
 #include <lib_aci.h>
 #include <aci_setup.h>


  /* We initialize the data structures required to setup the nRF8001
  */
  lib_aci_init(&aci_state);

  lib_aci_debug_print(true);
}


void loop()
{
  // We enter the if statement only when there is a ACI event available to be processed
  if (lib_aci_event_get(&aci_state, &aci_data))
  {

            When the device is in the setup mode
            */
            Serial.println(F("Evt Device Started: Setup"));
            setup_required = true;
            break;

            case ACI_DEVICE_STANDBY:
