 typedef enum {
   NORMAL, ALARM, SETTING_TIME, SETTING_ALARM} 
 CLOCK_STATE ;
-CLOCK_STATE currentState = NORMAL;
+volatile CLOCK_STATE currentState = NORMAL;
 
 typedef enum {
   T_HOUR, T_MINUTE} 

        settingAlarmProcess = A_TYPE;
      } 
      else {
        currentState = NORMAL;
      }


      else if(settingAlarmProcess == A_TYPE){
        vibrate = !vibrate;
      }
      
    }
    break;
  case SETTING_TIME:
