diff --git a/CMakeLists.txt b/CMakeLists.txt index 504ba88..0f8f82a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,6 +10,9 @@ set(COMPONENT_ADD_INCLUDEDIRS set(COMPONENT_REQUIRES nvs_flash mbedtls + driver + esp_event + esp_timer ) register_component() diff --git a/src/ttn_provisioning.c b/src/ttn_provisioning.c index a851ec4..16f5606 100644 --- a/src/ttn_provisioning.c +++ b/src/ttn_provisioning.c @@ -15,6 +15,7 @@ #include "esp_event.h" #include "esp_log.h" #include "esp_system.h" +#include "esp_mac.h" #include "freertos/FreeRTOS.h" #include "hal/hal_esp32.h" #include "lmic/lmic.h" @@ -605,4 +606,4 @@ bool is_all_zeros(const uint8_t *buf, int len) if (buf[i] != 0) return false; return true; -} \ No newline at end of file +}