From b366bf498885790d383b75d57813f31156f41857 Mon Sep 17 00:00:00 2001 From: Harald Kubota Date: Sat, 2 Jul 2016 23:21:33 +0900 Subject: [PATCH] Update sntp.md (#1378) Extra character in the doc --- docs/en/modules/sntp.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/modules/sntp.md b/docs/en/modules/sntp.md index 9b495961..9560d06a 100644 --- a/docs/en/modules/sntp.md +++ b/docs/en/modules/sntp.md @@ -17,7 +17,7 @@ Attempts to obtain time synchronization. #### Parameters - `server_ip` if non-`nil`, that server is used. If `nil`, then the last contacted server is used. This ties in with the NTP anycast mode, where the first responding server is remembered for future synchronization requests. The easiest way to use anycast is to always pass nil for the server argument. -- `callback` Iif provided it will be invoked on a successful synchronization, with three parameters: seconds, microseconds, and server. Note that when the [rtctime](rtctime.md) module is available, there is no need to explicitly call [`rtctime.set()`](rtctime.md#rtctimeset) - this module takes care of doing so internally automatically, for best accuracy. +- `callback` if provided it will be invoked on a successful synchronization, with three parameters: seconds, microseconds, and server. Note that when the [rtctime](rtctime.md) module is available, there is no need to explicitly call [`rtctime.set()`](rtctime.md#rtctimeset) - this module takes care of doing so internally automatically, for best accuracy. - `errcallback` failure callback with a single integer parameter describing the type of error. The module automatically performs a number of retries before giving up and reporting the error. Error codes: - 1: DNS lookup failed - 2: Memory allocation failure