code cleanup

This commit is contained in:
Martin Brodbeck 2023-01-01 16:22:56 +01:00
parent d7d6151efc
commit 258f120842
2 changed files with 2 additions and 9 deletions

View file

@ -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 ${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 target_compile_definitions(${CMAKE_PROJECT_NAME} PRIVATE
SNTP_SERVER_DNS=1 SNTP_SERVER_DNS=1
SNTP_SERVER_ADDRESS="pool.ntp.org" SNTP_SERVER_ADDRESS="pool.ntp.org"

View file

@ -154,8 +154,8 @@ int main() {
while (true) { while (true) {
rtc_get_datetime(&dt); rtc_get_datetime(&dt);
datetime_to_str(datetime_str, sizeof(datetime_buf), &dt); datetime_to_str(datetime_str, sizeof(datetime_buf), &dt);
printf("DateTime: %s\n", datetime_str); //printf("DateTime: %s\n", datetime_str);
sleep_ms(3000); sleep_ms(5000);
} }
cyw43_arch_deinit(); cyw43_arch_deinit();