Fixed library error
This commit is contained in:
@@ -18,3 +18,4 @@ idf_component_register(
|
||||
PRIV_REQUIRES # optional, list the private requirements
|
||||
)
|
||||
|
||||
component_compile_definitions("ESP_LWIP_COMPONENT_BUILD" "RELEASE=\"0.1\"")
|
||||
|
||||
+8
-1
@@ -42,6 +42,7 @@
|
||||
#include "clock.h"
|
||||
#include "wordmap.h"
|
||||
|
||||
|
||||
// --------------------------------------------------------------------------------------------------------------------
|
||||
// Constant and macro definitions
|
||||
// --------------------------------------------------------------------------------------------------------------------
|
||||
@@ -49,6 +50,7 @@
|
||||
#define RMT_LED_STRIP_RESOLUTION_HZ 10000000 // 10MHz resolution, 1 tick = 0.1us (led strip needs a high resolution)
|
||||
#define RMT_LED_STRIP_GPIO_NUM 0
|
||||
|
||||
|
||||
// --------------------------------------------------------------------------------------------------------------------
|
||||
// Type definitions
|
||||
// --------------------------------------------------------------------------------------------------------------------
|
||||
@@ -144,7 +146,12 @@ extern "C" void app_main(void)
|
||||
//
|
||||
Logger logger(10, uartPort);
|
||||
|
||||
LOGGER_DEBUG("Let's start the WORDCLOCK");
|
||||
LOGGER_PRINT("-----------------------------------------------------------------------");
|
||||
LOGGER_PRINT("System Start");
|
||||
LOGGER_PRINT("");
|
||||
LOGGER_PRINT("WordClock");
|
||||
LOGGER_PRINT("Release: %f", RELEASE);
|
||||
LOGGER_PRINT("Compiled on %d %d", __TIME__, __DATE__);
|
||||
|
||||
|
||||
//--------------------------------------------
|
||||
|
||||
@@ -61,7 +61,7 @@ Clock::Clock(Clock::mode mode)
|
||||
// Start NTP
|
||||
setenv("TZ", "CET-1CEST-2,M3.5.0/02:00:00,M10.5.0/03:00:00", 1);
|
||||
tzset();
|
||||
esp_sntp_setoperatingmode(SNTP_OPMODE_POLL);
|
||||
esp_sntp_setoperatingmode(ESP_SNTP_OPMODE_POLL);
|
||||
esp_sntp_setservername(0, "pool.ntp.org");
|
||||
esp_sntp_init();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user