NXP fan (in Japan)
/
RTC_LCD__starboard_orange
TextLCD_clock using internal realtime clock function (to check VB functionality)
Diff: main.cpp
- Revision:
- 1:c782bfadd12d
- Parent:
- 0:94bb7dad733c
--- 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" );