 
 void updateAlarm()
 {
-	int h = 15;
-	int m = 37;
+	int h = RTC.sramRead(ALARM_H_ADDR);
+	int m = RTC.sramRead(ALARM_M_ADDR);
 
 	digitValues[0] = h / 10;
 	digitValues[1] = h % 10;

			int m;
			h = digitValues[0]*10 + digitValues[1];
			m = digitValues[2]*10 + digitValues[3];
			//setTime(h, m, 0, 1, 1, 2015);
  			//RTC.set(now());

			Serial.print("New alarm time: ");
			Serial.print(h);
			Serial.print(":");
			Serial.println(m);

  			fsmState = SHOW_TIME_MODE;

		Serial.println("Unable to sync with the RTC");
	else
		Serial.println("RTC has set the system time"); 
	
	pinMode(ALARM_PIN, INPUT_PULLUP);
	RTC.sramWrite(ALARM_H_ADDR,  8);
	RTC.sramWrite(ALARM_M_ADDR, 30);
}

void loop()
