mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-12 11:15:08 +00:00
Adds property to set TvPresetsDigitSpacingMs from config
This commit is contained in:
@@ -28,6 +28,8 @@ namespace PepperDash.Essentials.Devices.Common
|
||||
public bool HasDpad { get; set; }
|
||||
public bool HasNumeric { get; set; }
|
||||
|
||||
public int TvPresetsDigitSpacingMs { get; private set; }
|
||||
|
||||
public DevicePresetsModel PresetsModel { get; private set; }
|
||||
|
||||
public IRSetTopBoxBase(string key, string name, IrOutputPortController portCont,
|
||||
@@ -35,13 +37,19 @@ namespace PepperDash.Essentials.Devices.Common
|
||||
: base(key, name)
|
||||
{
|
||||
IrPort = portCont;
|
||||
IrPulseTime = 200;
|
||||
IrPulseTime = 200; // default
|
||||
TvPresetsDigitSpacingMs = 200; // default
|
||||
|
||||
if (props.IrPulseTime > 0)
|
||||
{
|
||||
IrPulseTime = (ushort)props.IrPulseTime;
|
||||
}
|
||||
|
||||
if (props.TvPresetsDigitSpacingMs > 0)
|
||||
{
|
||||
TvPresetsDigitSpacingMs = props.TvPresetsDigitSpacingMs;
|
||||
}
|
||||
|
||||
DeviceManager.AddDevice(portCont);
|
||||
|
||||
HasPresets = props.HasPresets;
|
||||
|
||||
@@ -15,6 +15,7 @@ namespace PepperDash.Essentials.Devices.Common
|
||||
public bool HasDpad { get; set; }
|
||||
public bool HasNumeric { get; set; }
|
||||
public int IrPulseTime { get; set; }
|
||||
public int TvPresetsDigitSpacingMs { get; set; }
|
||||
|
||||
public ControlPropertiesConfig Control { get; set; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user