
void EditSaveVal (void)
{
  if ( CTParam )                  // Edit the Cycle Time values
    {
      if ( !IncPB  )              // Handle Increment command 
        {
	 if ( CycleTime < 90 )
	   {
	    ++CycleTime;
	   }
	 else
	   {
	    CycleTime = 90;       // Freeze at Upper limit
	   }
         }

     if ( !DecPB  )               // Handle Decrement command
        {
	  if ( CycleTime > 1 )
	    {
	     --CycleTime;
	    }
	  else
	    {
	     CycleTime = 0;       // Freeze at lower limit 
	    }
         }
      	  

  if ( !EnterPB )
    {
      CTParam  = 0;               // Cycle Time edit over    
      PRTParam = 1;               // Allow Press. Ramp time edit next
      <flash saving routine..>
    }
   
     sprintf( string , " Cycle Time Sec:       %02u", CycleTime);
     display(string);
     msDelay(200);
  } 
}	 		  	   
