         }
         currentTotalSpeed+=(*mySteppers[ii]).speed();
       }
+      
       if (currentTotalSpeed==0){
             n++;
       }
+      
       if (n>50){ //If we're stuck here not moving for 50 cycles then something's wrong!
         for (int ii=0; ii<5; ii++){
             serialBeep();



void runSteppersToPos(){

  int n=0; //counter to monitor if the controller is locked in this loop
  
  long keepMoving=0;
  while (keepMoving>0){

    for (int ii=0; ii<numAxes; ii++){
      if (!axisPresent[ii]){
        continue;
      }
      keepMoving += (*mySteppers[ii]).distanceToGo();
      (*mySteppers[ii]).run();
    }

      
      //Sometimes the controller locks up following analog stick motions
      //This is due to it getting stuck in this loop with the motors at zero

   } //close while loop

} //End runSteppersToPos

