mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-12 12:06:58 +00:00
Fix to allow card cage creation loop to continue even if a previous card encountered an issue
This commit is contained in:
parent
68ac506a25
commit
e0fdefa28e
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue