Skip to content

Commit

Permalink
Merge branch 'optimise/sntp_speedup_request' into 'master'
Browse files Browse the repository at this point in the history
optimise(ESPAT-1823): Optimized sntp startup delay and receive timeout

See merge request application/esp-at!1479
  • Loading branch information
xcguang committed Dec 4, 2023
2 parents 4876971 + 89bb3d8 commit a274a2c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ message("esp-at docs version: ${ESP_AT_DOCS_VERSION}")
set(FALLBACK_DNS_SERVER "8.8.8.8")
add_compile_options("-DFALLBACK_DNS_SERVER_ADDRESS(p)=ipaddr_aton(\"${FALLBACK_DNS_SERVER}\",(p))")

# optimize sntp startup delay and receive timeout to speed up time synchronization
add_compile_options("-DSNTP_STARTUP_DELAY_FUNC=0")
add_compile_options("-DSNTP_RECV_TIMEOUT=3000")

# add cmake flags
### (unused typedefs, unused variable, unused function, unused-but-set-variable) should not be treated as warnings and errors
add_compile_options("-Wno-unused-local-typedefs")
Expand Down

0 comments on commit a274a2c

Please sign in to comment.