mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-15 12:44:58 +00:00
Merge pull request #447 from PepperDash/bugfix/card-cage-iteration-fix
Bugfix/card cage iteration fix
This commit is contained in:
@@ -73,21 +73,21 @@ namespace PepperDash.Essentials.Core.CrestronIO.Cards
|
|||||||
string cardType;
|
string cardType;
|
||||||
if (!_config.Cards.TryGetValue(i, out cardType))
|
if (!_config.Cards.TryGetValue(i, out cardType))
|
||||||
{
|
{
|
||||||
Debug.Console(1, this, "No card found for slot {0}", i);
|
Debug.Console(0, this, "No card found for slot {0}", i);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (String.IsNullOrEmpty(cardType))
|
if (String.IsNullOrEmpty(cardType))
|
||||||
{
|
{
|
||||||
Debug.Console(0, this, "No card specified for slot {0}", i);
|
Debug.Console(0, this, "No card specified for slot {0}", i);
|
||||||
return;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
Func<uint, C3CardControllerBase> cardBuilder;
|
Func<uint, C3CardControllerBase> cardBuilder;
|
||||||
if (!_cardDict.TryGetValue(cardType.ToLower(), out cardBuilder))
|
if (!_cardDict.TryGetValue(cardType.ToLower(), out cardBuilder))
|
||||||
{
|
{
|
||||||
Debug.Console(0, "Unable to find factory for 3-Series card type {0}.", cardType);
|
Debug.Console(0, "Unable to find factory for 3-Series card type {0}.", cardType);
|
||||||
return;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
|
|||||||
Reference in New Issue
Block a user