mirror of
https://github.com/esphome/esphome.git
synced 2025-03-15 15:18:16 +00:00
fix SPI clang-tidy
This commit is contained in:
parent
8368f94e9e
commit
dc64010c32
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user