From dc64010c325e542a944f17fb3f9d5d968bd3b576 Mon Sep 17 00:00:00 2001 From: Tomasz Duda Date: Fri, 9 Aug 2024 16:20:03 +0200 Subject: [PATCH] fix SPI clang-tidy --- esphome/components/spi/spi.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/esphome/components/spi/spi.h b/esphome/components/spi/spi.h index 6aa3e25ff3..f284768755 100644 --- a/esphome/components/spi/spi.h +++ b/esphome/components/spi/spi.h @@ -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