mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-12 12:06:58 +00:00
Adds some debug comments to assist in debugging
This commit is contained in:
parent
77672237e6
commit
0e41cafdad
2 changed files with 10 additions and 6 deletions
|
|
@ -71,6 +71,8 @@ namespace PepperDash.Essentials
|
||||||
app.ParameterProjectName.Value = props.ProjectName;
|
app.ParameterProjectName.Value = props.ProjectName;
|
||||||
Panel = app;
|
Panel = app;
|
||||||
}
|
}
|
||||||
|
else if (type == "xpanel")
|
||||||
|
Panel = new XpanelForSmartGraphics(id, Global.ControlSystem);
|
||||||
else if (type == "tsw550")
|
else if (type == "tsw550")
|
||||||
Panel = new Tsw550(id, Global.ControlSystem);
|
Panel = new Tsw550(id, Global.ControlSystem);
|
||||||
else if (type == "tsw552")
|
else if (type == "tsw552")
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ namespace PepperDash.Essentials
|
||||||
|
|
||||||
PositionInterlock = new JoinedSigInterlock(parent.TriList);
|
PositionInterlock = new JoinedSigInterlock(parent.TriList);
|
||||||
|
|
||||||
var cmdName = String.Format("shwscrsvr-{0}", parent.TriList.ID);
|
var cmdName = String.Format("shwscrsvr-{0:X2}", parent.TriList.ID);
|
||||||
|
|
||||||
CrestronConsole.AddNewConsoleCommand((o) => Show(), cmdName, "Shows Panel Screensaver", ConsoleAccessLevelEnum.AccessOperator);
|
CrestronConsole.AddNewConsoleCommand((o) => Show(), cmdName, "Shows Panel Screensaver", ConsoleAccessLevelEnum.AccessOperator);
|
||||||
|
|
||||||
|
|
@ -51,7 +51,7 @@ namespace PepperDash.Essentials
|
||||||
|
|
||||||
public override void Show()
|
public override void Show()
|
||||||
{
|
{
|
||||||
Debug.Console(2, "Showing ScreenSaverController");
|
Debug.Console(2, "Showing ScreenSaverController: {0:X2}", TriList.ID);
|
||||||
|
|
||||||
if (_parent.AvDriver != null)
|
if (_parent.AvDriver != null)
|
||||||
{
|
{
|
||||||
|
|
@ -67,10 +67,11 @@ namespace PepperDash.Essentials
|
||||||
|
|
||||||
public override void Hide()
|
public override void Hide()
|
||||||
{
|
{
|
||||||
Debug.Console(2, "Hiding ScreenSaverController");
|
Debug.Console(2, "Hiding ScreenSaverController: {0:X2}", TriList.ID);
|
||||||
|
|
||||||
if (PositionTimer != null)
|
if (PositionTimer != null)
|
||||||
{
|
{
|
||||||
|
Debug.Console(2, "Stopping PositionTimer: {0:X2}", TriList.ID);
|
||||||
PositionTimer.Stop();
|
PositionTimer.Stop();
|
||||||
PositionTimer.Dispose();
|
PositionTimer.Dispose();
|
||||||
PositionTimer = null;
|
PositionTimer = null;
|
||||||
|
|
@ -88,7 +89,7 @@ namespace PepperDash.Essentials
|
||||||
|
|
||||||
void StartPositionTimer()
|
void StartPositionTimer()
|
||||||
{
|
{
|
||||||
Debug.Console(2, "Starting Position Timer");
|
Debug.Console(2, "Starting Position Timer: {0:X2}", TriList.ID);
|
||||||
|
|
||||||
if (PositionTimer == null)
|
if (PositionTimer == null)
|
||||||
{
|
{
|
||||||
|
|
@ -121,7 +122,7 @@ namespace PepperDash.Essentials
|
||||||
CurrentPositionIndex = 0;
|
CurrentPositionIndex = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
Debug.Console(2, "ScreenSaver Position Timer Expired: Setting new position: {0}", CurrentPositionIndex);
|
Debug.Console(2, "ScreenSaver Position Timer Expired: Setting new position: {0} ID: {1:X2}", CurrentPositionIndex, TriList.ID);
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
@ -133,7 +134,8 @@ namespace PepperDash.Essentials
|
||||||
|
|
||||||
void ClearAllPositions()
|
void ClearAllPositions()
|
||||||
{
|
{
|
||||||
Debug.Console(2, "Hiding all screensaver positions");
|
Debug.Console(2, "Hiding all screensaver positions: {0:X2}", TriList.ID);
|
||||||
|
|
||||||
PositionInterlock.HideAndClear();
|
PositionInterlock.HideAndClear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue