some very old changes, resurrected from the old CVS, almost forgotten

This commit is contained in:
2009-03-18 14:17:44 +00:00
parent 1f77141a10
commit f660282ec5
4 changed files with 10 additions and 12 deletions

View File

@ -245,7 +245,7 @@ void timerInterrupt(void) {
if (!(PINC & (1 << PINC2))) {
// key pressed
keycounter++;
if (keycounter > 4) {
if (keycounter > 2) {
// after 4 cycles with pressed key, switch to the next mode
keycounter = 0;
mode++;
@ -289,13 +289,13 @@ void timerInterrupt(void) {
// set the current date and time to a fixed value to demonstrate
// how the time is displayed
datetime.is_valid = 1;
datetime.time.hour = 10;
datetime.time.minute = 35;
datetime.time.second = 10;
datetime.date.dayofmonth = 30;
datetime.time.hour = 23;
datetime.time.minute = 49;
datetime.time.second = 57;
datetime.date.dayofmonth = 31;
datetime.date.month = 12;
datetime.date.year = 6;
datetime.date.dayofweek = 6;
datetime.date.dayofweek = 7;
} else {
datetime = dcf_current_datetime();
}