summaryrefslogtreecommitdiff
path: root/avr/z180-serv.c
diff options
context:
space:
mode:
Diffstat (limited to 'avr/z180-serv.c')
-rw-r--r--avr/z180-serv.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/avr/z180-serv.c b/avr/z180-serv.c
index 0712d8d..3814650 100644
--- a/avr/z180-serv.c
+++ b/avr/z180-serv.c
@@ -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 */