 #define SHOW_TEMP_DURATION 3000
 
 // ---------------------- //
-//  RTC definitions
-// ---------------------- //
-#define N 4
+//  Common definitions
+// ---------------------- //
+#define N 4 // number of LCD digits
 
 // ---------------------- //
 //  Globals

	switch(fsmState)
	{
		case EDIT_ALARM_MODE:
			int h;
			int m;
			h = digitValues[0]*10 + digitValues[1];
			m = digitValues[2]*10 + digitValues[3];
			RTC.sramWrite(0x20, h);
			RTC.sramWrite(0x21, m);
			//setTime(h, m, 0, 1, 1, 2015);
  			//RTC.set(now());

			Serial.print("New alarm time: ");
			h = RTC.sramRead(0x20);
			Serial.print(h);
			Serial.print(":");
			m = RTC.sramRead(0x21);
			Serial.println(m);

  			fsmState = SHOW_TIME_MODE;
  			break;

  			break;

		case EDIT_ALARM_MODE:
			if (isRtcAlarmOn())
			{
				disableRtcAlarm();
				for (int i = 0; i < N; i++)
					display.disableDecimalPoint(i);
			} else 
			{
				enableRtcAlarm();
				for (int i = 0; i < N; i++)
					display.enableDecimalPoint(i);
			}
