disabled uart if tx_mode is 0

This commit is contained in:
proddy
2020-07-06 13:30:00 +02:00
parent cfce4964bf
commit 686c51d0c4

View File

@@ -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
}