mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-08-31 19:08:29 +00:00
Adds property to set TvPresetsDigitSpacingMs from config
This commit is contained in:
parent
de068277de
commit
29e2b88862
4 changed files with 53 additions and 10 deletions
|
|
@ -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; }
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue