/******************************************************************
 ******************************************************************
 *                                                                *
 *              MOTOR PREP IGNITION TIME SEQUENCE                 *
 *                                                                *
 ******************************************************************
 ******************************************************************/
 
void motorPrepIgnitionTime(void)
{
  // =====================================================================    
  // Get motor ignition time information
 
  // Display delay time entry instructions on Serial Monitor
     Serial.println(serialLine2);
     Serial.println(F("Test Stand Entry: Ignition Time"));
     Serial.println();
     Serial.println(F("Enter the length of time (in seconds) between 3 and 10 that power"));
     Serial.println(F("should be applied to the igniter of the motor being tested."));
     Serial.println(F("Then hit the 'ENTER' key from the Serial Monitor"));
     Serial.println();

  // Get length of time for igniter of the motor being tested
     resumeProcedure = false;

     while (resumeProcedure == false) 
     {
        if (Serial.available() > 0)          
        {
          timeFireRelay = Serial.parseInt();
          if (timeFireRelay != 0)
          {
            if ((timeFireRelay < 3) || (timeFireRelay >10))
            timeFireRelay = 5;
          
          // Display average thrust entered
             Serial.print(F("Ignition time length entered: "));
             Serial.println(timeFireRelay);
             Serial.println();
             
             resumeProcedure = true;
          }                       
        }
      }
}
