code cleanup
This commit is contained in:
parent
d7d6151efc
commit
258f120842
2 changed files with 2 additions and 9 deletions
|
@ -15,13 +15,6 @@ target_include_directories(${CMAKE_PROJECT_NAME} PRIVATE
|
|||
${CMAKE_CURRENT_LIST_DIR}/.. # for our common lwipopts or any other standard includes, if required
|
||||
)
|
||||
|
||||
#add_definitions(
|
||||
# -DSNTP_SERVER_DNS=1
|
||||
# -DSNTP_SERVER_ADDRESS="pool.ntp.org"
|
||||
# -DSNTP_STARTUP_DELAY=0
|
||||
# -DSNTP_SET_SYSTEM_TIME=set_system_time
|
||||
#)
|
||||
|
||||
target_compile_definitions(${CMAKE_PROJECT_NAME} PRIVATE
|
||||
SNTP_SERVER_DNS=1
|
||||
SNTP_SERVER_ADDRESS="pool.ntp.org"
|
||||
|
|
|
@ -154,8 +154,8 @@ int main() {
|
|||
while (true) {
|
||||
rtc_get_datetime(&dt);
|
||||
datetime_to_str(datetime_str, sizeof(datetime_buf), &dt);
|
||||
printf("DateTime: %s\n", datetime_str);
|
||||
sleep_ms(3000);
|
||||
//printf("DateTime: %s\n", datetime_str);
|
||||
sleep_ms(5000);
|
||||
}
|
||||
|
||||
cyw43_arch_deinit();
|
||||
|
|
Loading…
Reference in a new issue