--- np2/calendar.c 2003/10/16 17:57:06 1.1 +++ np2/calendar.c 2004/02/18 21:58:41 1.4 @@ -8,7 +8,8 @@ _CALENDAR cal; -static const BYTE days[12] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; +static const UINT8 days[12] = { 31, 28, 31, 30, 31, 30, + 31, 31, 30, 31, 30, 31}; static void secinc(_SYSTIME *dt) { @@ -25,7 +26,7 @@ static void secinc(_SYSTIME *dt) { goto secinc_exit; } dt->minute = 0; - dt->hour = 0; + dt->hour++; if (dt->hour < 24) { goto secinc_exit; } @@ -88,7 +89,7 @@ static void date2bcd(BYTE *bcd, const _S // ----- -void calendar_init(void) { +void calendar_initialize(void) { timemng_gettime(&cal.dt); cal.steps = 0;