Skip to content

Commit

Permalink
bugfix: add missing REQUIRES to example
Browse files Browse the repository at this point in the history
  • Loading branch information
trombik committed Aug 25, 2022
1 parent 3941a0d commit b4faf16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/demo/main/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
idf_component_register(SRCS "main.c" "sync_time.c"
INCLUDE_DIRS "."
REQUIRES esp_wireguard nvs_flash)
REQUIRES esp_wifi lwip esp_wireguard nvs_flash)
2 changes: 1 addition & 1 deletion examples/demo/main/sync_time.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ void obtain_time(void)

initialize_sntp();
while (sntp_get_sync_status() == SNTP_SYNC_STATUS_RESET && ++retry < retry_count) {
ESP_LOGI(TAG, "Waiting for system time to be set... (%" PRIi32 "/%" PRIi32 ")", retry, retry_count);
ESP_LOGI(TAG, "Waiting for system time to be set... (%i/%i)", retry, retry_count);
vTaskDelay(2000 / portTICK_PERIOD_MS);
}
}
Expand Down

0 comments on commit b4faf16

Please sign in to comment.