Updates to Fusion SetUpCommunicationMonitors() method to properly link TPs vs Xpanels by base class type.

This commit is contained in:
Neil Dorin
2017-08-31 16:41:31 -06:00
parent f502432fcc
commit 88de2a2ee0

View File

@@ -955,24 +955,23 @@ namespace PepperDash.Essentials.Fusion
string attrName = null; string attrName = null;
uint attrNum = Convert.ToUInt32(keyNum); uint attrNum = Convert.ToUInt32(keyNum);
if (dev is EssentialsTouchpanelController)
if (dev is BasicTriListWithSmartObject)
{ {
if (attrNum > 10) if ((dev as EssentialsTouchpanelController).Panel is Crestron.SimplSharpPro.DeviceSupport.TswFt5Button)
continue; {
attrName = "Online - Touch Panel " + attrNum; if (attrNum > 10)
attrNum += 150; continue;
} attrName = "Online - Touch Panel " + attrNum;
// add xpanel here attrNum += 150;
}
if (dev is Crestron.SimplSharpPro.UI.XpanelForSmartGraphics) else if (dev is Crestron.SimplSharpPro.UI.XpanelForSmartGraphics)
{ {
if (attrNum > 10) if (attrNum > 10)
continue; continue;
attrName = "Online - XPanel " + attrNum; attrName = "Online - XPanel " + attrNum;
attrNum += 160; attrNum += 160;
} }
}
//else //else
if (dev is DisplayBase) if (dev is DisplayBase)