 /*
  * BLE and central seetings
  */
-#define DXQUEUESIZE (12*12)     // 12 h of queue (remember and send the last x hours when reconnected via BLE)
+#define DXQUEUESIZE (8*12)     // 12 h of queue (remember and send the last x hours when reconnected via BLE)
 
 #define LB_NAME   "xbridge1"    // dont change "xbridge", space for 1 char left to indicate different versions
 #define LB_ADVERT "rfduino"     // dont change "rfduino"
                                 // length of device name and advertisement <=15!!!
 #define LB_VERSION "V0.9"       // program version
-#define LB_MINOR_VERSION ".05"  // indicates minor version
+#define LB_MINOR_VERSION ".06"  // indicates minor version
 #define LB_DATETIME "180213_1332" // date_time
 #define SPIKE_HEIGHT 40         // minimum delta to be a spike
 

 *  - debug oputput with no sensor available cleanded
 *  V0.9.05
 *  - possible overflow error in sleep time fixed (@bertrooode)
 */

/* ********************* program configuration options **********************/

#define RFD                     // enable for RFduino platform?
//#define N_RFD                   // enable for Simblee platform
//#define N_USE_DEAD_SENSOR       // enable to work with live sensors
#define USE_DEAD_SENSOR         // enable to test with a dead sensor
#define USE_SPIKE_FILTER        // enable to use a spike filter on raw data
// #define N_USE_SPIKE_FILTER     // enable to not use a spike filter on raw data
#define USE_XBRIDGE2            // enable to use two way xbridge2 protocol with backfilling
//#define N_USE_XBRIDGE2            // enable to use plain LimiTTer text transmission without backchannel
#define USE_SHADOWFRAM          // work with a shadow FRAM copy of the Libre sensor FRAM
//#define N_SHADOWFRAM            // read a full Libre sensor FRAM content each cycle

//#define SHORTSTARTCYCLE         // first 10 cycles with 1 min period
#define N_SHORTSTARTCYCLE         // normal system start

    return RXBuffer[0];  // result code of command response
}

#ifdef USE_SHADOWFRAM
void readHeader(byte *RXBuffer,  Sensor *sensor, int SS_Pin) {

    int maxTrials = 10; // (Re)read a block max four times
