mirror of
https://github.com/esphome/esphome.git
synced 2024-11-28 01:34:18 +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
|
#pragma once
|
||||||
|
|
||||||
#include "esphome/core/application.h"
|
#include "esphome/core/application.h"
|
||||||
#include "esphome/core/component.h"
|
#include "esphome/core/component.h"
|
||||||
#include "esphome/core/hal.h"
|
#include "esphome/core/hal.h"
|
||||||
|
@ -28,8 +27,8 @@ using SPIInterface = spi_host_device_t;
|
||||||
|
|
||||||
#endif // USE_ESP_IDF
|
#endif // USE_ESP_IDF
|
||||||
|
|
||||||
#ifdef USE_ZEPHYR
|
#ifndef USE_SPI
|
||||||
// FIXME just to silent clang-tidy
|
// supprse clang-tidy on platform that do not support SPI
|
||||||
using SPIInterface = void *;
|
using SPIInterface = void *;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue