Commit e85ad7f6 LN

修改根据颜色灭灯bug

1 个父辈 3618c65e
...@@ -353,13 +353,7 @@ namespace SmartShelf.DeviceLibrary ...@@ -353,13 +353,7 @@ namespace SmartShelf.DeviceLibrary
{ {
LogUtil.info(BoxName + proMsg + " ProcessCloseByColor 命令:" + color); LogUtil.info(BoxName + proMsg + " ProcessCloseByColor 命令:" + color);
List<string> posIdList = new List<string>(PositionMap.Keys); List<string> posIdList = new List<string>(PositionMap.Keys);
foreach (LEDBaseModule led in LEDManager.deviceMap.Values)
{
if (String.IsNullOrEmpty(ip) || led.ModuleIP.Equals(ip))
{
led.AllLightOff();
}
}
Dictionary<string, List<Light>> lightsMap = new Dictionary<string, List<Light>>(); Dictionary<string, List<Light>> lightsMap = new Dictionary<string, List<Light>>();
foreach (string key in posIdList) foreach (string key in posIdList)
{ {
...@@ -392,6 +386,10 @@ namespace SmartShelf.DeviceLibrary ...@@ -392,6 +386,10 @@ namespace SmartShelf.DeviceLibrary
Dictionary<string, List<Light>> lightsMap = new Dictionary<string, List<Light>>(); Dictionary<string, List<Light>> lightsMap = new Dictionary<string, List<Light>>();
foreach (string posStr in posArray) foreach (string posStr in posArray)
{ {
if (String.IsNullOrEmpty(posStr))
{
continue;
}
string posid = posStr; string posid = posStr;
string color = Light.defaultColor; string color = Light.defaultColor;
if (posStr.Contains(PosId_Color_SpiltChar)) if (posStr.Contains(PosId_Color_SpiltChar))
......
此文件类型无法预览
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!