 unsigned long previousProcess=0;
 unsigned long sendInterval=50;
 void processData(){
+  if(mode==0){
+    return;
+  }
   if((millis()-previousProcess)>sendInterval){
     float data[6];
     getData(data);

}

int comRead(){
  int value;
  if(isBT){
    value=BT.parseInt();
  }
  else{
    value=Serial.parseInt();
  }
  return value;
}



      }
    }
    else{
      for(int i=0; i<3; i++){
        long a=(endColor[i]-startColor[i])*(millis()-startCurrentMode);
        if(endColor[i]-startColor[i] <0){
          a=-abs(a);
        }
        color[i]=(a/mode1Duration+startColor[i])%256;
        color[i]=(int)color[i];
      }
      if(millis()-startCurrentMode>mode1Duration){
        changeMode(3);
