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;
|
return StateUpdateResult::CHANGED;
|
||||||
},
|
},
|
||||||
"local");
|
"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_.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
|
// force a fetch for all new values, unless Tx is set to off
|
||||||
if (tx_mode != 0) {
|
if (tx_mode != 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user