sprinkle with #ifndef until clang if happy

This commit is contained in:
Guido Schreuder 2024-02-20 00:25:21 +01:00
parent 2d64411a65
commit a856722723
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,4 @@
#ifndef USE_ESP8266
#include "ebus_component.h" #include "ebus_component.h"
@ -160,3 +161,5 @@ void EbusComponent::update() {
} // namespace ebus } // namespace ebus
} // namespace esphome } // namespace esphome
#endif // USE_ESP8266

View file

@ -7,8 +7,10 @@
#include "ebus.h" #include "ebus.h"
#ifndef USE_ESP8266
#include <driver/uart.h> #include <driver/uart.h>
#include <soc/uart_reg.h> #include <soc/uart_reg.h>
#endif
namespace esphome { namespace esphome {
namespace ebus { namespace ebus {
@ -59,8 +61,10 @@ class EbusComponent : public PollingComponent {
uint8_t uart_tx_pin_; uint8_t uart_tx_pin_;
uint8_t uart_rx_pin_; uint8_t uart_rx_pin_;
#ifndef USE_ESP8266
QueueHandle_t history_queue_; QueueHandle_t history_queue_;
QueueHandle_t command_queue_; QueueHandle_t command_queue_;
#endif
std::list<EbusSender *> senders_; std::list<EbusSender *> senders_;
std::list<EbusReceiver *> receivers_; std::list<EbusReceiver *> receivers_;