 
 
 //adjust fudge factor and offset to tune the arduino.
+
 //slow float fudge_factor = 1.001;
 //slightly fast float fudge_factor = 1.0012;
 //very slightly fast float fudge_factor = 1.0011;
 float fudge_factor = 1.00107;
 int offset = 15;
 
-unsigned long prev_mils,mil,sec,mins,hr,reset_mills = 0;
+unsigned long prev_mils,mil,sec,mins,hr,reset_mil = 0;
 
 //initially set hours to zero and minutes to zero.
 int hr_init = 0;

  }else{

    //subtract lapsed time since last occasion that the time was set.    
    mil -= reset_mills;
  
    // TUNE your arduino
    sec = (mil/1000 * fudge_factor) + offset;

  //see if the time is being set. 
  if(digitalRead(5) == LOW){
    reset_slow = true;
    reset_init();    
  }  else {
    if(digitalRead(4) == LOW){
      reset_fast = true;
      reset_init();    
    }  
  }
