mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-09 09:19:51 +03:00
Merge branch 'dev' into dev2
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();
|
||||
});
|
||||
|
||||
//
|
||||
|
||||
@@ -1309,7 +1309,7 @@ void Boiler::process_UBAMonitorFastPlus(std::shared_ptr<const Telegram> telegram
|
||||
uint8_t syspress = sysPress_;
|
||||
telegram->read_value(syspress, 21); // 0 means no sensor
|
||||
if (syspress == 0) {
|
||||
sysPress_ = EMS_VALUE_UINT_NOTSET;
|
||||
syspress = EMS_VALUE_UINT_NOTSET;
|
||||
}
|
||||
has_update(sysPress_, syspress);
|
||||
|
||||
|
||||
@@ -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