mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
disabled uart if tx_mode is 0
This commit is contained in:
@@ -231,7 +231,9 @@ void System::start() {
|
||||
Mqtt::subscribe("cmd", std::bind(&System::mqtt_commands, this, _1));
|
||||
|
||||
#ifndef EMSESP_FORCE_SERIAL
|
||||
EMSuart::start(tx_mode_); // start UART
|
||||
if (tx_mode_) {
|
||||
EMSuart::start(tx_mode_); // start UART, if tx_mode is not 0
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user