For Terrarium Controller Project
Fork of NetServices by
Diff: services/ntp/NTPClient.cpp
- Revision:
- 1:79049adc01ed
- Parent:
- 0:ac1725ba162c
diff -r ac1725ba162c -r 79049adc01ed services/ntp/NTPClient.cpp --- a/services/ntp/NTPClient.cpp Tue Nov 09 20:54:15 2010 +0000 +++ b/services/ntp/NTPClient.cpp Tue Nov 16 20:03:48 2010 +0000 @@ -147,7 +147,7 @@ m_state = NTP_PING; Host localhost(IpAddr(), NTP_CLIENT_PORT, "localhost"); //Any local address m_pUDPSocket->bind(localhost); - set_time( 1280000000 ); //End of July 2010... just there to limit offset range + if ((int)time(NULL) < 1280000000) set_time( 1280000000 ); //End of July 2010... just there to limit offset range process(); }