mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-01-27 00:59:10 +03:00
don't count echos as errors also for remote thermostat emulation
This commit is contained in:
@@ -31,6 +31,7 @@
|
||||
#include "emsesp.h"
|
||||
|
||||
namespace emsesp {
|
||||
uint8_t EMSuart::last_tx_src_ = 0;
|
||||
|
||||
static QueueHandle_t uart_queue;
|
||||
uint8_t tx_mode_ = 0xFF;
|
||||
@@ -144,6 +145,8 @@ uint16_t EMSuart::transmit(const uint8_t * buf, const uint8_t len) {
|
||||
return EMS_TX_STATUS_OK;
|
||||
}
|
||||
|
||||
last_tx_src_ = len < 4 ? 0 : buf[0];
|
||||
|
||||
if (tx_mode_ == EMS_TXMODE_HW) { // hardware controlled mode
|
||||
uart_write_bytes_with_break(EMSUART_NUM, buf, len, 10);
|
||||
return EMS_TX_STATUS_OK;
|
||||
|
||||
Reference in New Issue
Block a user