Browse Source

修复8通道光源亮度获取命令

徐孝锋 7 tháng trước cách đây
mục cha
commit
7aace5ee27
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      TeamAAS-VM/Core/Lights/KCSLightController.cs

+ 4 - 0
TeamAAS-VM/Core/Lights/KCSLightController.cs

@@ -161,6 +161,10 @@ namespace TeamAAS_VP.Core.Lights
         {
             // 通道字母从 'A' 开始递增
             string command = $"S{(char)('A' + channelIndex)}#";
+            if (_config.LightModel == LightModel.KCS_KDC3_24V300W_8T)
+            {
+                command = $"SR{(char)('A' + channelIndex)}#";
+            }
             var response = await SendCommandAsync(command);
 
             // 响应示例(假设):?XDDD(总长度 5),亮度在索引 2 开始的 3 个字符