Revert "fix mqttlogger path"

This reverts commit aac4f902f7.
This commit is contained in:
technyon
2023-06-07 17:35:33 +02:00
parent aac4f902f7
commit cc741ae01e
3 changed files with 3 additions and 6 deletions

View File

@@ -46,8 +46,7 @@ WifiDevice::WifiDevice(const String& hostname, Preferences* _preferences, const
_path = new char[200];
memset(_path, 0, sizeof(_path));
String pathStr = "/";
pathStr.concat(_preferences->getString(preference_mqtt_lock_path));
String pathStr = _preferences->getString(preference_mqtt_lock_path);
pathStr.concat(mqtt_topic_log);
strcpy(_path, pathStr.c_str());
Log = new MqttLogger(this, _path, MqttLoggerMode::MqttAndSerial);