       if (isServoToTogle(servoidx)){
         //Serial.println("off-moving servo t");
         servos[servoidx].write(servo_end,SPEED);
-	lastPos = servo_end;
+	      lastPos = servo_end;
       }
       else {
         //Serial.println("off-moving servo");

      case 0: //do nothing        
      break;
      case 1://move to start position
	servos[i].write(15,SPEED);
      break;
      case 2://mode to end position        
      	servos[i].write(170,SPEED);
      break;
      case 3://move to last position
          moveServoToLastPosition(i);
      break;
    }    

      }
    }
   //write last pos to eprom
   //variables start with number 1   
   cbus.setInternalNodeVariable(servoidx+1,lastPos);
}

//create the objects for each servo
void setUpServos(){  
  byte ac = cbus.getNodeVar(SERVO_STARTACTION_VAR);
  Serial.println(ac);
  for (uint8_t i=0;i<NUM_SERVOS;i++){
    servos[i].attach(servopins[i]);

