esp-idf-lib/components/hmc5883l/CMakeLists.txt

Tue, 04 Apr 2023 20:57:49 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Tue, 04 Apr 2023 20:57:49 +0200
changeset 15
64028e178ff1
parent 1
1c9894662795
permissions
-rw-r--r--

Splitted wifi and mqtt connect states to make the connections more robust. Protect the mqtt connection request against requests when a request is already done or in progress.

if(${IDF_VERSION_MAJOR} STREQUAL 4 AND ${IDF_VERSION_MINOR} STREQUAL 1 AND ${IDF_VERSION_PATCH} STREQUAL 3)
	set(req i2cdev log esp_idf_lib_helpers)
else()
	set(req i2cdev log esp_idf_lib_helpers esp_timer)
endif()

idf_component_register(
    SRCS hmc5883l.c
    INCLUDE_DIRS .
    REQUIRES ${req}
)

mercurial