adds missing condition to set remoteTimeout from config value

This commit is contained in:
Neil Dorin
2021-02-04 09:30:45 -07:00
parent 89ca614d3d
commit eb90fb343d
2 changed files with 10 additions and 0 deletions

View File

@@ -148,6 +148,11 @@ namespace PepperDash.Essentials.Core
SetLedFlashEnable((bool)PropertiesConfig.EnableLedFlash);
}
if (PropertiesConfig.RemoteTimeout != null)
{
SetRemoteTimeout((ushort)PropertiesConfig.RemoteTimeout);
}
if (PropertiesConfig.ShortTimeoutState != null)
{
SetShortTimeoutState((bool)PropertiesConfig.ShortTimeoutState);

View File

@@ -100,6 +100,11 @@ namespace PepperDash.Essentials.Core
SetLedFlashEnable((bool)PropertiesConfig.EnableLedFlash);
}
if (PropertiesConfig.RemoteTimeout != null)
{
SetRemoteTimeout((ushort)PropertiesConfig.RemoteTimeout);
}
if (PropertiesConfig.ShortTimeoutState != null)
{
SetShortTimeoutState((bool)PropertiesConfig.ShortTimeoutState);