Skip to content

Commit ae499eb

Browse files
authored
MQTT is not reporting the correct LastChange (#21605)
I assume this is just missing. I got some side effects on shutters where on MQTT commands the source is still the LAST one before the MQTT
1 parent a53e057 commit ae499eb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tasmota/tasmota_xdrv_driver/xdrv_02_9_mqtt.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,8 @@ void MqttDataHandler(char* mqtt_topic, uint8_t* mqtt_data, unsigned int data_len
639639
if (XdrvCall(FUNC_MQTT_DATA)) { return; }
640640

641641
ShowSource(SRC_MQTT);
642-
642+
TasmotaGlobal.last_source = SRC_MQTT;
643+
643644
CommandHandler(topic, (char*)mqtt_data, data_len);
644645

645646
if (Mqtt.disable_logging) {

0 commit comments

Comments
 (0)