Fix compilation for use as IDF component (#5265)

This commit is contained in:
Me No Dev
2021-06-09 12:56:12 +03:00
committed by GitHub
parent 90fc68d83f
commit 7f87d0fc3a
16 changed files with 29 additions and 21 deletions

View File

@ -1,5 +1,5 @@
#include "RMakerDevice.h"
#if ESP_IDF_VERSION_MAJOR >= 4 && CONFIG_IDF_TARGET_ESP32
#if ESP_IDF_VERSION_MAJOR >= 4 && CONFIG_ESP_RMAKER_TASK_STACK && CONFIG_IDF_TARGET_ESP32
static esp_err_t err;
typedef void (*deviceWriteCb)(Device*, Param*, const param_val_t val, void *priv_data, write_ctx_t *ctx);