Versão limpa em 04/09/2014. Telnet funcionando.
Dependencies: EthernetInterface mbed-rtos mbed NTPClient
Diff: main.cpp
- Branch:
- feature-logs
- Revision:
- 22:a06c7bb05008
- Parent:
- 20:54e8563fb78c
- Child:
- 25:e64a10acfd41
diff -r 4bfe3dc59b86 -r a06c7bb05008 main.cpp --- a/main.cpp Fri Mar 27 15:46:25 2015 +0000 +++ b/main.cpp Fri Mar 27 16:22:11 2015 +0000 @@ -157,7 +157,8 @@ //Start NTP Client for refresh time //Thread ntpc(ntpc::ntpc_Thread); - set_time(1420077600); + time_t tempo = time(NULL); + if ((tempo+60) < 1420077600) set_time(1420077600); DisplayRAMBanks();