mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-18 15:47:13 +00:00

Compared with the latest idf, idf4.0 defines BIT(nr) in the "esp_bit_defs.h" without the pre-condition "#ifndef BIT", which will cause compile warning when using mesh. So we include the header file "soc/soc.h" in "mesh_util.h", which can bypass the definition of "BIT" in "mesh_util.h" when compiling.