   int change;
   if(increment){
     change = 1;
-  } else {
+  } 
+  else {
     change = -1;
   }
-  
+
   int newValue = current + change;
-  
+
   //To produce positive modulo result
   return (newValue % 24 + 24) % 24;
 }
 
 int getNextMinSecFromCurrentMinSec(int current, boolean increment){
-    int change;
+  int change;
   if(increment){
     change = 1;
-  } else {
+  } 
+  else {
     change = -1;
   }
-  
+
   int newValue = current + change;
-  
+
   //To produce positive modulo result
   return (newValue % 60 + 60) % 60;
 }

void writeAlarmToDisplayBuffer(boolean blinkOn){
  uView.setFontType(0);
  uView.setCursor(0,24);
  uView.print(alarmHour);
  uView.print(":");
  uView.print(alarmMinute);
  uView.print(" Vib");

}


void writeButtonStateToDisplayBuffer(boolean blinkOn){
  uView.setFontType(0);
  uView.setCursor(0,41);

  String buttonFunction;
  switch(currentState)
  {
  case ALARM: 
    {
      if(!blinkOn){
        buttonFunction = "X   X   X";
      }

    }
    break;
  case NORMAL : 
    buttonFunction =  "Led Alm Ti";
    break;
  case SETTING_ALARM: 
    //Fallthrough
  case SETTING_TIME: 
    buttonFunction = "-  Next  +";
    break;
  default: 
    break;
  }

  uView.print(buttonFunction);
}

