TextLCD_clock using internal realtime clock function (to check VB functionality)

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
nxpfan
Date:
Fri Jul 02 07:35:05 2010 +0000
Parent:
0:94bb7dad733c
Commit message:

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 94bb7dad733c -r c782bfadd12d main.cpp
--- a/main.cpp	Fri Jul 02 07:16:35 2010 +0000
+++ b/main.cpp	Fri Jul 02 07:35:05 2010 +0000
@@ -35,7 +35,7 @@
     // get the current time from the terminal
     struct tm t;
 
-    if ( ((time_t)-1) == time( NULL ) ) {
+    if ( 0 == time( NULL ) ) {  // it should return ((time_t)-1) if it is not initialized but...
         lcd.locate( 0, 0 );
         lcd.printf( "please set time from terminal" );