From: johanknol Date: Thu, 24 May 2001 09:06:39 +0000 (+0000) Subject: ternary bug solved X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=bbf04d133c625050485eefedc11f629bfea82595;p=fw%2Fsdcc ternary bug solved git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@848 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/device/examples/ds390/rtc390/rtc390.c b/device/examples/ds390/rtc390/rtc390.c index 03e63cc2..38b83135 100755 --- a/device/examples/ds390/rtc390/rtc390.c +++ b/device/examples/ds390/rtc390/rtc390.c @@ -58,18 +58,11 @@ char GetTime(struct tm *rtcTime) { void PrintTime(struct tm *rtcTime, char verbose) { -#ifdef ShowMeAnotherBug printf ("%s%04d-%02d-%02d %02d:%02d:%02d.%02d\n", verbose ? "RTC time: " : "", // this one still needs a cast rtcTime->tm_year+1900, rtcTime->tm_mon+1, rtcTime->tm_mday, rtcTime->tm_hour, rtcTime->tm_min, rtcTime->tm_sec, rtcTime->tm_hundredth); -#else - printf ("RTC time: %04d-%02d-%02d %02d:%02d:%02d.%02d\n", - rtcTime->tm_year+1900, rtcTime->tm_mon+1, rtcTime->tm_mday, - rtcTime->tm_hour, rtcTime->tm_min, rtcTime->tm_sec, - rtcTime->tm_hundredth); -#endif if (verbose) { time_t calendarTime=mktime(rtcTime);