Ver código fonte

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

徐孝锋 7 meses atrás
pai
commit
7aace5ee27
1 arquivos alterados com 4 adições e 0 exclusões
  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 个字符