    }
 // ############ End O-Scope Mode #################    
     
-   UsrInput =  ScanButtons();
-   UpDateSettings(UsrInput, Mode);
-   delay( 250 ); // wait 1/4 second(s)
-    LoopCounter = LoopCounter + 1;
-
-    if (LoopCounter >= 8)
-     {
-      LoopCounter = 0;
-      eventCounter = 0;
-//      TooHighCnt = 0;
-//      TooLowCnt = 0;
-      NewTrgtVal = true;
-      //Serial1.print("Looks as if Motor has Stopped\n");
-     }
+  
+   UpdtDis = ScanButtons();
    long TotalRunTime = calcruntime();
   } //end of 1st while loop
  //kill the PWM signal

   eventCounter +=1;
   if (eventCounter >= SampleCnt+2)
    {
    if (period ==0) sprintf (buf,"Too Small");
    else
     {

// ================================================================
void loop() 
{
  //int UsrInput = 0;
  int stopCnt = 0;
  bool UpdtDis = false;
  unsigned long CurPrdTime;
  lcd.setCursor(0,1);
  lcd.print("Speed Cntl Ready");
  lcd.setCursor(0,0);
