Fixed compilation with newer esp-idf versions

This commit is contained in:
2022-01-11 20:49:59 +01:00
parent 4b13de686c
commit cfc8dc2d6b

View File

@@ -11,6 +11,7 @@
// Include processor specific header
#include "soc/spi_reg.h"
#include "driver/spi_master.h"
#include "soc/gpio_struct.h"
#if !defined(CONFIG_IDF_TARGET_ESP32C3) && !defined(CONFIG_IDF_TARGET_ESP32S2) && !defined(CONFIG_IDF_TARGET_ESP32)
#define CONFIG_IDF_TARGET_ESP32