Compare commits

..

4 Commits

Author SHA1 Message Date
Andrew Welker
b026174cd2 Merge branch 'main' into release/1.9.2 2021-07-28 15:47:46 -06:00
Andrew Welker
5d120391a5 Merge pull request #752 from PepperDash/feature/ndorin-patch-1
Adds a prompt to capture affected version
2021-07-21 13:16:59 -06:00
Neil Dorin
db5aa319ec Adds a prompt to capture affected version 2021-07-20 16:49:03 -06:00
Andrew Welker
4cc40227fd Merge pull request #734 from PepperDash/hotfix/zip-release-upload
ci: Remove condition on upload to release
2021-07-08 11:41:32 -06:00
4 changed files with 7 additions and 23 deletions

View File

@@ -7,6 +7,9 @@ assignees: ''
---
**Was this bug identified in a specific build version?**
Please note the build version where this bug was identified
**Describe the bug**
A clear and concise description of what the bug is.

View File

@@ -18,7 +18,6 @@ namespace PepperDash.Essentials.Core
/// </summary>
public override bool BoolValue { get { return _BoolValue; } }
bool _BoolValue;
public bool AlwaysSendValue;
/// <summary>
/// Fake value to be used in test mode
@@ -63,16 +62,10 @@ namespace PepperDash.Essentials.Core
ValueFunc = valueFunc;
}
public BoolFeedback(string key, bool alwaysSendValue, Func<bool> valueFunc)
: this(key, valueFunc)
{
AlwaysSendValue = alwaysSendValue;
}
public override void FireUpdate()
{
bool newValue = InTestMode ? TestValue : ValueFunc.Invoke();
if (newValue != _BoolValue || AlwaysSendValue)
if (newValue != _BoolValue)
{
_BoolValue = newValue;
LinkedInputSigs.ForEach(s => UpdateSig(s));

View File

@@ -12,7 +12,6 @@ namespace PepperDash.Essentials.Core
public override int IntValue { get { return _IntValue; } } // ValueFunc.Invoke(); } }
int _IntValue;
public ushort UShortValue { get { return (ushort)_IntValue; } }
public bool AlwaysSendValue;
//public override eCueType Type { get { return eCueType.Int; } }
@@ -52,16 +51,10 @@ namespace PepperDash.Essentials.Core
ValueFunc = valueFunc;
}
public IntFeedback(string key, bool alwaysSendValue, Func<int> valueFunc)
: this(key, valueFunc)
{
AlwaysSendValue = alwaysSendValue;
}
public override void FireUpdate()
{
var newValue = InTestMode ? TestValue : ValueFunc.Invoke();
if (newValue != _IntValue || AlwaysSendValue)
if (newValue != _IntValue)
{
_IntValue = newValue;
LinkedInputSigs.ForEach(s => UpdateSig(s));

View File

@@ -23,7 +23,6 @@ namespace PepperDash.Essentials.Core
/// </summary>
public Func<string> ValueFunc { get; private set; }
List<StringInputSig> LinkedInputSigs = new List<StringInputSig>();
public bool AlwaysSendValue;
/// <summary>
/// Creates the feedback with the Func as described.
@@ -52,17 +51,13 @@ namespace PepperDash.Essentials.Core
{
ValueFunc = valueFunc;
}
public StringFeedback(string key, bool alwaysSendValue, Func<string> valueFunc)
: this(key, valueFunc)
{
AlwaysSendValue = alwaysSendValue;
}
public override void FireUpdate()
{
var newValue = InTestMode ? TestValue : ValueFunc.Invoke();
if (newValue != _StringValue || AlwaysSendValue)
if (newValue != _StringValue)
{
_StringValue = newValue;
LinkedInputSigs.ForEach(s => UpdateSig(s));