fix: 别名变量写入值

This commit is contained in:
iioter 2024-07-28 22:05:11 +08:00
parent 3ed405a476
commit d4c6d1fec8

View File

@ -301,7 +301,7 @@ namespace Plugin
DeviceVariable? deviceVariable;
if (e.DeviceName == Device.DeviceName)
deviceVariable = Device.DeviceVariables.FirstOrDefault(x =>
x.Name == para.Key && string.IsNullOrWhiteSpace(x.Alias));
x.Name == para.Key );
else
deviceVariable = Device.DeviceVariables.FirstOrDefault(x =>
x.Name == para.Key && x.Alias == e.DeviceName);