]> git.gag.com Git - fw/sdcc/commitdiff
*** empty log message ***
authorjohanknol <johanknol@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Fri, 25 May 2001 11:29:20 +0000 (11:29 +0000)
committerjohanknol <johanknol@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Fri, 25 May 2001 11:29:20 +0000 (11:29 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@855 4a8a32a2-be11-0410-ad9d-d568d2c75423

device/examples/ds390/clock390/clock390.c
device/examples/ds390/rtc390/rtc390.c
device/examples/mcs51/clock/Makefile

index b73a013e61d387ca8d82adda95da939702b2a04e..92a80f384fced77770f05749ecf5c70babb3bbd6 100644 (file)
@@ -21,7 +21,7 @@ void main (void) {
     seconds=ms/1000;
 
 #ifdef USE_LCD
-    LcdLPrintf (2 + (4<<8), "%ld", ms);
+    LcdLPrintf (2 + (4<<8), "%10ld", ms);
 #endif
 
     if (seconds!=oldSeconds) {
index 38b8313551a2770db7fef3c0599dc6775f8a4741..bbfa2ee4184a6742326796ab7a201f1f8e33a6dd 100755 (executable)
@@ -59,7 +59,7 @@ char GetTime(struct tm *rtcTime) {
 void PrintTime(struct tm *rtcTime, char verbose) {
 
   printf ("%s%04d-%02d-%02d %02d:%02d:%02d.%02d\n", 
-         verbose ? "RTC time: " : "", // this one still needs a cast
+         verbose ? "RTC time: " : "",
          rtcTime->tm_year+1900, rtcTime->tm_mon+1, rtcTime->tm_mday,
          rtcTime->tm_hour, rtcTime->tm_min, rtcTime->tm_sec,
          rtcTime->tm_hundredth);
index 49ee32bae4cbe4be718e0acbbaa17216eb9b7ba7..1a0e80c996bc4596db6e6169cf2d4271905084b3 100755 (executable)
@@ -1,4 +1,4 @@
-CC = /home/johan/sdcc/bin/sdcc
+CC = sdcc
 #CFLAGS = -V
 MFLAGS = --model-small --stack-after-data
 #MFLAGS = --model-large --stack-after-data