Try catch on some Fusion usage bugs; Fixed press-hold on TriListExtensions

This commit is contained in:
Heath Volmer
2017-08-24 20:29:30 -06:00
parent 12d9ad1183
commit 0d42a41af3
8 changed files with 18 additions and 18 deletions

View File

@@ -7,6 +7,8 @@ using Crestron.SimplSharp;
using Crestron.SimplSharpPro;
using Crestron.SimplSharpPro.DeviceSupport;
using PepperDash.Core;
namespace PepperDash.Essentials.Core
{
/// <summary>
@@ -75,11 +77,12 @@ namespace PepperDash.Essentials.Core
{
if (press)
{
// Could insert a pressed action here
heldTimer = new CTimer(o =>
{
// if still held and there's an action
if (tl.BooleanInput[sigNum].BoolValue && heldAction != null)
if (tl.BooleanOutput[sigNum].BoolValue && heldAction != null)
// Hold action here
heldAction();
}, heldMs);