     
   
    UpdtDis = ScanButtons();
+   if (UpdtDis)  LoopCounter++;
    long TotalRunTime = calcruntime();
   } //end of 1st while loop
  //kill the PWM signal

bool ExitNow = false;
bool NuInput = true;
bool ActivIntrpt = false;
//char *intFlgStat;
//int ThrtlLpCnt= 0;
//int Startup = 0; // Locks out pid calcs on startup to give the default throttle setting a chance to take effect before correcting it

unsigned long period;
unsigned long Maxperiod;

int UsrInput = 0;
int PWMpin; // Digital Pin that PWM signal appears on (Pin 13 = Leonardo; Pin 11 = Uno)
int calcrpm = 0;
int sensorPin = A1; // Used for Oscope Mode (mode 3)
