mirror of
https://github.com/esphome/esphome.git
synced 2024-11-27 17:27:59 +01:00
fix SPI clang-tidy
This commit is contained in:
parent
8368f94e9e
commit
dc64010c32
1 changed files with 2 additions and 3 deletions
|
@ -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…
Reference in a new issue