mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-01-26 08:39:09 +03:00
use EMS_TXMODE_OFF
This commit is contained in:
@@ -273,7 +273,7 @@ void TxService::start() {
|
||||
// sends a 1 byte poll which is our own deviceID
|
||||
void TxService::send_poll() const {
|
||||
// LOG_DEBUG("Ack %02X",ems_bus_id() ^ ems_mask());
|
||||
if (tx_mode()) {
|
||||
if (tx_mode() != EMS_TXMODE_OFF) {
|
||||
EMSuart::send_poll(ems_bus_id() ^ ems_mask());
|
||||
}
|
||||
}
|
||||
@@ -309,7 +309,7 @@ void TxService::send() {
|
||||
delayed_send_ = 0;
|
||||
|
||||
// if we're in read-only mode (tx_mode 0) forget the Tx call
|
||||
if (tx_mode() != 0) {
|
||||
if (tx_mode() != EMS_TXMODE_OFF) {
|
||||
send_telegram(tx_telegrams_.front());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user