Skip to content

Commit

Permalink
fix: correct formatting for debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-welker committed Apr 12, 2024
1 parent dc5e5c3 commit 79ebfbb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
2 changes: 0 additions & 2 deletions src/NvxEpi/Devices/NvxBaseDevice.cs
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,6 @@ public override bool CustomActivate()
protected void AddMcMessengers()
{
#if SERIES4
Debug.LogMessage(Serilog.Events.LogEventLevel.Verbose, "Device Feedback Keys: {@feedbacks}", this, Feedbacks.Select(f => f.Key));

var mc = DeviceManager.AllDevices.OfType<IMobileControl>().FirstOrDefault();

if (mc == null)
Expand Down
16 changes: 8 additions & 8 deletions src/NvxEpi/Services/Feedback/HdmiInputFeedbacks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public class HdmiHdcpCapabilityValueFeedback

public static IntFeedback GetFeedback(DmNvxBaseClass device, uint _inputNumber)
{
Debug.Console(1, "Getting HdcpCapabilityValue Feedback for {input}", _inputNumber);
Debug.Console(1, "Getting HdcpCapabilityValue Feedback for {0}", _inputNumber);
if (device.HdmiIn == null || device.HdmiIn[_inputNumber] == null)
return new IntFeedback(() => 0);

Expand All @@ -66,7 +66,7 @@ public class HdmiHdcpCapabilityFeedback

public static StringFeedback GetFeedback(DmNvxBaseClass device, uint _inputNumber)
{
Debug.Console(1, "Getting HdcpCapability Feedback for {input}", _inputNumber);
Debug.Console(1, "Getting HdcpCapability Feedback for {0}", _inputNumber);
if (device.HdmiIn == null || device.HdmiIn[_inputNumber] == null)
return new StringFeedback(() => string.Empty);

Expand All @@ -84,7 +84,7 @@ public class HdmiHdcpStateFeedback

public static IntFeedback GetFeedback(DmNvxBaseClass device, uint _inputNumber)
{
Debug.Console(1, "Getting HdcpState Feedback for {input}", _inputNumber);
Debug.Console(1, "Getting HdcpState Feedback for {0}", _inputNumber);
if (device.HdmiIn == null || device.HdmiIn[_inputNumber] == null)
return new IntFeedback(() => 0);

Expand All @@ -103,7 +103,7 @@ public class HdmiCurrentResolutionFeedback

public static StringFeedback GetFeedback(DmNvxBaseClass device, uint _inputNumber)
{
Debug.Console(1, "Getting CurrentResolution Feedback for {input}", _inputNumber);
Debug.Console(1, "Getting CurrentResolution Feedback for {0}", _inputNumber);
if (device.HdmiIn == null || device.HdmiIn[_inputNumber] == null)
{
return new StringFeedback(() => string.Empty);
Expand All @@ -127,7 +127,7 @@ public class HdmiAudioChannelsFeedback

public static IntFeedback GetFeedback(DmNvxBaseClass device, uint _inputNumber)
{
Debug.Console(1, "Getting AudioResolution Feedback for {input}", _inputNumber);
Debug.Console(1, "Getting AudioResolution Feedback for {0}", _inputNumber);
if (device.HdmiIn == null || device.HdmiIn[_inputNumber] == null)
{
return new IntFeedback(() => 0);
Expand All @@ -147,7 +147,7 @@ public class HdmiAudioFormatFeedback

public static StringFeedback GetFeedback(DmNvxBaseClass device, uint _inputNumber)
{
Debug.Console(1, "Getting AudioFormat Feedback for {input}", _inputNumber);
Debug.Console(1, "Getting AudioFormat Feedback for {0}", _inputNumber);
if (device.HdmiIn == null || device.HdmiIn[_inputNumber] == null)
{
return new StringFeedback(() => string.Empty);
Expand All @@ -167,7 +167,7 @@ public class HdmiColorSpaceFeedback

public static StringFeedback GetFeedback(DmNvxBaseClass device, uint _inputNumber)
{
Debug.Console(1, "Getting Colorspace Feedback for {input}", _inputNumber);
Debug.Console(1, "Getting Colorspace Feedback for {0}", _inputNumber);
if (device.HdmiIn == null || device.HdmiIn[_inputNumber] == null)
{
return new StringFeedback(() => string.Empty);
Expand All @@ -187,7 +187,7 @@ public class HdmiHdrTypeFeedback

public static StringFeedback GetFeedback(DmNvxBaseClass device, uint _inputNumber)
{
Debug.Console(1, "Getting HdrType Feedback for {input}", _inputNumber);
Debug.Console(1, "Getting HdrType Feedback for {0}", _inputNumber);
if (device.HdmiIn == null || device.HdmiIn[_inputNumber] == null)
{
return new StringFeedback(() => string.Empty);
Expand Down

0 comments on commit 79ebfbb

Please sign in to comment.