stamp = days * ONE_DAY;
stamp += bcd2bin(msg[0]);
stamp += bcd2bin(msg[1]) * 60 ;
- stamp += bcd2bin(msg[2]) * 3600;
+ stamp += bcd2bin(msg[2]) * 3600L;
gmtime_r(&stamp, tmp);
return 0;
}
cpm_time[2] = bin2bcd(tmp->tm_hour);
cpm_time[3] = days;
cpm_time[4] = days >> 8;
-
- debug("## mk_cpmtime: tm_year: %d, tm_yday: %d, days: %d\n",
- tmp->tm_year, tmp->tm_yday, days);
}
/* get/set cp/m time */
INIDONE equ 03Fh ;CP/M skip hw init, if this address\r
INIDONEVAL equ 080h ; is set to this value.\r
\r
-mtx.fifo_len equ 32 ;Message transfer fifos\r
+mtx.fifo_len equ 64 ;Message transfer fifos\r
mtx.fifo_id equ 0 ; This *must* have #0\r
-mrx.fifo_len equ 32\r
+mrx.fifo_len equ 64\r
mrx.fifo_id equ 1\r
\r
ci.fifo_len equ 32 ;AVRCON Character I/O via AVR\r