From a0de32e67d8a71dd31b984e5207451f95bb2c9a2 Mon Sep 17 00:00:00 2001 From: barbudor Date: Thu, 13 Oct 2022 21:27:06 +0200 Subject: [PATCH] get correct topic var --- tasmota/tasmota_xdrv_driver/xdrv_10_scripter.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasmota/tasmota_xdrv_driver/xdrv_10_scripter.ino b/tasmota/tasmota_xdrv_driver/xdrv_10_scripter.ino index ce6d71ec9..66d699bab 100755 --- a/tasmota/tasmota_xdrv_driver/xdrv_10_scripter.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_10_scripter.ino @@ -4769,7 +4769,7 @@ extern char *SML_GetSVal(uint32_t index); goto strexit; } if (!strncmp(vname, "topic", 5)) { - if (sp) strlcpy(sp, SettingsText(SET_MQTT_TOPIC), glob_script_mem.max_ssize); + if (sp) strlcpy(sp, TasmotaGlobal.mqtt_topic, glob_script_mem.max_ssize); goto strexit; } #ifdef USE_SCRIPT_TIMER