   return value;
 }
 void setColors(){
-  if(mode==1 || mode ==4 || mode ==5){
+  if((mode==1 || mode ==4) || mode ==5){
     if((millis()-startCurrentMode)<waitDuration(mode)){
       // blink if the current mode just started
       if((millis()-startCurrentMode)%600 < 300){

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

                break;
            }
          }
          else{
            notFirst=true;
          }
        }
      }
      }
