Update esp-idf_component.md

This commit is contained in:
Me No Dev 2017-10-14 00:08:41 +03:00 committed by GitHub
parent 409c75da04
commit 9fe32304c8

View File

@ -62,9 +62,9 @@ To use as a component of ESP-IDF
If you are writing code that does not require Arduino to compile and you want your `ESP_LOGx` macros to work in Arduino IDE, you can enable the compatibility by adding the following lines after your includes: If you are writing code that does not require Arduino to compile and you want your `ESP_LOGx` macros to work in Arduino IDE, you can enable the compatibility by adding the following lines after your includes:
```cpp ```cpp
#ifdef ARDUINO_ARCH_ESP32 #ifdef ARDUINO_ARCH_ESP32
#include "esp32-hal-log.h" #include "esp32-hal-log.h"
#endif #endif
``` ```