 
   arg = sCmd.next();
   if (arg != NULL) {
-    sVal = atof(arg);    // Converts a char string to a float
+    sVal = atof(arg);                                         // Converts a char string to a float
   }
   else {
     syntax_error = true;

    doing_from_to = 0;   
  }  // do
  while (arg != NULL);
  if (n_groups == 0)
    syntax_error = true;

  // Handle syntax errors
  if (syntax_error) {
    Serial.println(F(" "));
    Serial.println(F("Incorrect syntax"));
    Serial.println(F("  Example: ShowAngle 0, 15-30, 45-50, 10")); 
    Serial.println(F("  Example: ShowAngle 0-359 to show all angles.")); 
    Serial.println(F("Notes: Use a space after each comma")); 
    Serial.println(F("       No particular order is required"));
    Serial.println(F("       In a from-to pair, the 1st value must be lowest. From-to pairs can overlap ranges.")); 
  }
  else {                                                  // no errors detected, display the angles and start
    // We're ready to process multiple angles    
    Serial.println(F(""));
    Serial.print(F("Angles:"));
    xv_config.show_angle == SHOW_ALL_ANGLES;              // start by assuming 'all angles'
    for (int ix = 0; ix < N_ANGLES; ix++) {               // display the angle array
      if(aryAngles[ix]) {
        Serial.print(ix, DEC);
        Serial.print(F(","));
      }
      else
        xv_config.show_angle == 0;                        // disable 'display all angles'
    }
    Serial.println(F(""));
    showDist2(); 
  }  // if not (syntax_error)
}

void motorOff() {
  xv_config.motor_enable = false;
  Timer3.pwm(xv_config.motor_pwm_pin, 0);
  Serial.println(F(" "));
  Serial.println(F("Motor off"));
}

void motorOn() {
  xv_config.motor_enable = true;
  Timer3.pwm(xv_config.motor_pwm_pin, pwm_val);
  rpm_err = 0;  // reset rpm error
  Serial.println(F(" "));
  Serial.println(F("Motor on"));
}

void motorCheck() {  // Make sure the motor RPMs are good else shut it down
  now = millis();
  if (now - motor_check_timer > motor_check_interval){
    if ((motor_rpm < xv_config.rpm_min or motor_rpm > xv_config.rpm_max) and pwm_val > 1000) {

      }
    }  // for (ix = 0; ix < lToken; ix++) 
    // validate 'from' and 'to' and set 'aryAngles' with correct values
    if ((from >= 0) && (from < _N_ANGLES) 
    && (to >= 0) && (to < _N_ANGLES)) {
      if (to >= from) {
        if (bOneshot == false) {
          bOneshot = true;        
          for (ix = 0; ix < _N_ANGLES; ix++)              // initialize aryAngles (just once)
            xv_config.aryAngles[ix] = false; 
        }
        for (ix = from; ix <= to; ix++) {
          xv_config.aryAngles[ix] = true;
        }
      }
      else {
