mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-14 21:16:48 +00:00
fix: implement PR Review suggestions
This commit is contained in:
parent
bce1e3610e
commit
210b398a13
2 changed files with 3 additions and 19 deletions
|
|
@ -134,7 +134,7 @@ namespace PepperDash.Essentials.Core
|
||||||
}
|
}
|
||||||
// otherwise, audioVideo needs to be handled as two steps.
|
// otherwise, audioVideo needs to be handled as two steps.
|
||||||
|
|
||||||
Debug.LogMessage(LogEventLevel.Debug, "Attempting to build source route from {sourceKey} of type {type}", destination, source.Key, signalType);
|
Debug.LogMessage(LogEventLevel.Debug, "Attempting to build source route from {destinationKey} to {sourceKey} of type {type}", destination, source.Key, signalType);
|
||||||
|
|
||||||
RouteDescriptor audioRouteDescriptor;
|
RouteDescriptor audioRouteDescriptor;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -76,24 +76,8 @@ namespace PepperDash.Essentials.Devices.Common.Generic
|
||||||
|
|
||||||
private void UpdateCurrentSources(eRoutingSignalType signalType, string sourceListKey, SourceListItem sourceListItem)
|
private void UpdateCurrentSources(eRoutingSignalType signalType, string sourceListKey, SourceListItem sourceListItem)
|
||||||
{
|
{
|
||||||
if (CurrentSources.ContainsKey(signalType))
|
CurrentSources[signalType] = sourceListItem;
|
||||||
{
|
CurrentSourceKeys[signalType] = sourceListKey;
|
||||||
CurrentSources[signalType] = sourceListItem;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
CurrentSources.Add(signalType, sourceListItem);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Update the current source key for the specified signal type
|
|
||||||
if (CurrentSourceKeys.ContainsKey(signalType))
|
|
||||||
{
|
|
||||||
CurrentSourceKeys[signalType] = sourceListKey;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
CurrentSourceKeys.Add(signalType, sourceListKey);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue