fix SPI clang-tidy

This commit is contained in:
Tomasz Duda 2024-08-09 16:20:03 +02:00
parent 8368f94e9e
commit dc64010c32

View file

@ -1,5 +1,4 @@
#pragma once
#include "esphome/core/application.h"
#include "esphome/core/component.h"
#include "esphome/core/hal.h"
@ -28,8 +27,8 @@ using SPIInterface = spi_host_device_t;
#endif // USE_ESP_IDF
#ifdef USE_ZEPHYR
// FIXME just to silent clang-tidy
#ifndef USE_SPI
// supprse clang-tidy on platform that do not support SPI
using SPIInterface = void *;
#endif