From 258f120842feb4ad8506bda7936d67347ae1085c Mon Sep 17 00:00:00 2001 From: Martin Brodbeck Date: Sun, 1 Jan 2023 16:22:56 +0100 Subject: [PATCH] code cleanup --- src/CMakeLists.txt | 7 ------- src/abfall.cpp | 4 ++-- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 35d3968..46185b0 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -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" diff --git a/src/abfall.cpp b/src/abfall.cpp index 0d5fa7f..606e78f 100644 --- a/src/abfall.cpp +++ b/src/abfall.cpp @@ -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();