allow modbus start/stop without reboot

This commit is contained in:
MichaelDvP
2026-03-15 16:12:50 +01:00
parent 5e94c2f636
commit 8c732f9f1e
4 changed files with 32 additions and 17 deletions

View File

@@ -52,7 +52,7 @@ void Modbus::stop() {
#ifndef EMSESP_STANDALONE
modbusServer_->stop();
// virtual ~ModbusServerTCPasync() = default;
// delete modbusServer_;
delete modbusServer_;
modbusServer_ = nullptr;
#endif
}