Fixed NTPResult values
Dependents: NTPClient_HelloWorld_WIZ550io LPC11U68_NTPClient_HelloWorld_WIZ550io SNIC-ntpclient-example NTPClient_HelloWorld ... more
Fork of NTPClient by
Revision 5:c70ed0bfab2e, committed 2013-12-22
- Comitter:
- ban4jp
- Date:
- Sun Dec 22 13:59:33 2013 +0000
- Parent:
- 4:881559865a93
- Child:
- 6:15c04f752381
- Commit message:
- Fixed NTPResult values
Changed in this revision
| NTPClient.cpp | Show annotated file Show diff for this revision Revisions of this file |
| NTPClient.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/NTPClient.cpp Sun Aug 05 16:10:57 2012 +0000
+++ b/NTPClient.cpp Sun Dec 22 13:59:33 2013 +0000
@@ -91,6 +91,7 @@
if( outEndpoint.set_address(host, port) < 0)
{
+ ERR("Could not resolve name");
m_sock.close();
return NTP_DNS;
}
--- a/NTPClient.h Sun Aug 05 16:10:57 2012 +0000
+++ b/NTPClient.h Sun Dec 22 13:59:33 2013 +0000
@@ -38,7 +38,7 @@
///NTP client results
enum NTPResult
{
- NTP_DNS, ///<Could not resolve name
+ NTP_DNS = -4, ///<Could not resolve name
NTP_PRTCL, ///<Protocol error
NTP_TIMEOUT, ///<Connection timeout
NTP_CONN, ///<Connection error
ban4jp -
