fix mqttlogger path

This commit is contained in:
technyon
2023-06-07 17:16:20 +02:00
parent f568051192
commit aac4f902f7
3 changed files with 6 additions and 3 deletions

View File

@@ -56,7 +56,8 @@ void W5500Device::initialize()
if(_preferences->getBool(preference_mqtt_log_enabled))
{
String pathStr = _preferences->getString(preference_mqtt_lock_path);
String pathStr = "/";
pathStr.concat(_preferences->getString(preference_mqtt_lock_path));
pathStr.concat(mqtt_topic_log);
_path = new char[pathStr.length() + 1];
memset(_path, 0, sizeof(_path));