mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
console tx_mode without reboot
This commit is contained in:
@@ -346,6 +346,7 @@ static void setup_commands(std::shared_ptr<Commands> & commands) {
|
||||
return StateUpdateResult::CHANGED;
|
||||
},
|
||||
"local");
|
||||
to_app(shell).uart_init();
|
||||
});
|
||||
|
||||
//
|
||||
|
||||
@@ -216,6 +216,7 @@ void EMSESP::uart_init() {
|
||||
}
|
||||
|
||||
txservice_.start(); // sends out request to EMS bus for all devices
|
||||
txservice_.tx_mode(tx_mode);
|
||||
|
||||
// force a fetch for all new values, unless Tx is set to off
|
||||
if (tx_mode != 0) {
|
||||
|
||||
Reference in New Issue
Block a user