mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-08 00:39:50 +03:00
Merge branch 'v2' of https://github.com/proddy/EMS-ESP into v2
esp32 uart
This commit is contained in:
@@ -422,7 +422,7 @@ bool EMSESP::process_telegram(std::shared_ptr<const Telegram> telegram) {
|
||||
for (const auto & emsdevice : emsdevices) {
|
||||
if (emsdevice) {
|
||||
if (emsdevice->is_device_id(telegram->src)) {
|
||||
found = emsdevice->process_telegram(telegram);
|
||||
found = emsdevice->handle_telegram(telegram);
|
||||
// check to see if we need to force an MQTT publish
|
||||
if (found) {
|
||||
if (emsdevice->updated_values()) {
|
||||
@@ -702,6 +702,9 @@ void EMSESP::console_commands(Shell & shell, unsigned int context) {
|
||||
settings.ems_tx_mode(tx_mode);
|
||||
settings.commit();
|
||||
shell.printfln(F_(tx_mode_fmt), settings.ems_tx_mode());
|
||||
// reset the UART
|
||||
EMSuart::stop();
|
||||
EMSuart::start(tx_mode);
|
||||
} else {
|
||||
shell.println(F("Must be 1 for EMS generic, 2 for EMS+, 3 for HT3, 4 for experimental"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user