From 6d61c4525e01a18bd0ebedd14647623a2ca7868d Mon Sep 17 00:00:00 2001 From: Andrew Welker Date: Wed, 17 Sep 2025 08:52:29 -0500 Subject: [PATCH] fix: use ConsoleCommandResponse for device feedbacks --- .../Devices/DeviceManager.cs | 21 ++----------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/src/PepperDash.Essentials.Core/Devices/DeviceManager.cs b/src/PepperDash.Essentials.Core/Devices/DeviceManager.cs index b466f043..1c9709b8 100644 --- a/src/PepperDash.Essentials.Core/Devices/DeviceManager.cs +++ b/src/PepperDash.Essentials.Core/Devices/DeviceManager.cs @@ -219,28 +219,17 @@ namespace PepperDash.Essentials.Core var dev = GetDeviceForKey(devKey); if (dev == null) { - Debug.LogMessage(LogEventLevel.Information, "Device '{0}' not found", devKey); + CrestronConsole.ConsoleCommandResponse($"Device '{devKey}' not found\r\n"); return; } if (!(dev is IHasFeedback statusDev)) { - Debug.LogMessage(LogEventLevel.Information, "Device '{0}' does not have visible feedbacks", devKey); + CrestronConsole.ConsoleCommandResponse($"Device '{devKey}' does not have visible feedbacks\r\n"); return; } statusDev.DumpFeedbacksToConsole(true); } - //static void ListDeviceCommands(string devKey) - //{ - // var dev = GetDeviceForKey(devKey); - // if (dev == null) - // { - // Debug.LogMessage(LogEventLevel.Information, "Device '{0}' not found", devKey); - // return; - // } - // Debug.LogMessage(LogEventLevel.Information, "This needs to be reworked. Stay tuned.", devKey); - //} - private static void ListDeviceCommStatuses(string input) { @@ -250,12 +239,6 @@ namespace PepperDash.Essentials.Core } } - - //static void DoDeviceCommand(string command) - //{ - // Debug.LogMessage(LogEventLevel.Information, "Not yet implemented. Stay tuned"); - //} - /// /// AddDevice method ///