mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-07-02 10:38:16 +00:00
Updates to Fusion SetUpCommunicationMonitors() method to properly link TPs vs Xpanels by base class type.
This commit is contained in:
parent
f502432fcc
commit
88de2a2ee0
1 changed files with 16 additions and 17 deletions
|
|
@ -955,23 +955,22 @@ 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 ((dev as EssentialsTouchpanelController).Panel is Crestron.SimplSharpPro.DeviceSupport.TswFt5Button)
|
||||||
{
|
{
|
||||||
if (attrNum > 10)
|
if (attrNum > 10)
|
||||||
continue;
|
continue;
|
||||||
attrName = "Online - Touch Panel " + attrNum;
|
attrName = "Online - Touch Panel " + attrNum;
|
||||||
attrNum += 150;
|
attrNum += 150;
|
||||||
}
|
}
|
||||||
// add xpanel here
|
else if (dev is Crestron.SimplSharpPro.UI.XpanelForSmartGraphics)
|
||||||
|
|
||||||
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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue