   } else {
     sendBTLEString(response, strlen(response));
   }
+  latchtime = millis();    // Reset the base latchtime for the IDLETIME timeout count, since activity has occurred
 }
 
 void setupBTLEHandlers(){

  Serial.print(F("BTLE Handlers Setup..."));
  setupBTLEHandlers();
  Serial.println(F("OK"));
}

void loop(){
  if(sendBlankPending){
    sendBlank();
  }
  
  if(sendDataPending){
    sendData();
  }
}

#include "Photometer.h"

#include <Wire.h>
#include <SPI.h>
#include "utilities.h"
#include <RFduinoBLE.h>
#include "BTLE.h"
