]> cloudbase.mooo.com Git - z180-stamp.git/commitdiff
bugfix integer promotion. increase size of message fifos to 64
authorLeo C <erbl259-lmu@yahoo.de>
Wed, 3 Jun 2015 12:02:01 +0000 (14:02 +0200)
committerLeo C <erbl259-lmu@yahoo.de>
Wed, 3 Jun 2015 12:02:01 +0000 (14:02 +0200)
avr/z180-serv.c
z180/config.inc

index 0712d8d2815cf8fc3ffac3fcb11794db3ec19194..381465043fc0f560d9b6d601613b79a552a84a88 100644 (file)
@@ -146,7 +146,7 @@ int mk_date_time (int len, uint8_t *msg, struct tm *tmp)
        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;
 }
@@ -167,9 +167,6 @@ void mk_cpm_time(struct tm *tmp, uint8_t cpm_time[5])
        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 */
index 034febe128e698d4d96938239d5dfad44e7751c9..b5a53192f9adc47e44ddfb47d43a05e5750c7e8d 100644 (file)
@@ -123,9 +123,9 @@ DDTZRSTVEC  equ     030h            ;DDTZ Restart vector (breakpoints)
 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