 typedef enum {NORMAL, ALARM, SETTING_TIME, SETTING_ALARM} CLOCK_STATE ;
 CLOCK_STATE currentState = NORMAL;
 
-typedef enum {T_HOUR, T_MINUTE, T_SECOND, T_YEAR, T_MONTH, T_DAY} SETTING_TIME_STATE ;
+typedef enum {T_HOUR, T_MINUTE, T_SECOND, T_DAY, T_MONTH, T_YEAR} SETTING_TIME_STATE ;
 SETTING_TIME_STATE settingTimeProcess;
 
 typedef enum {A_HOUR, A_MINUTE, A_TYPE} SETTING_ALARM_STATE ;

  }
  break;
  case SETTING_TIME:
  break;
  default: break;
  }

  if(currentState == SETTING_TIME && settingTimeProcess == T_DAY && !blinkOn){
    dayString = "  ";
  } else {
    char buff[3];
    sprintf(buff, "%02d", day);
    dayString = buff;
  }
  
  if(currentState == SETTING_TIME && settingTimeProcess == T_MONTH && !blinkOn){
