826220679@qq.com
5 小时以前 69b40096cb0ae965f2a3e92672b880edfe7d04d2
src/yaokong/Control07.java
@@ -157,9 +157,6 @@
        }
        byte[] payload = buildLightCommandBytes(lightValue);
        
        // 调试:打印发送的数据
        System.out.println("发送大灯控制指令: " + bytesToHex(payload));
        return sendmessage.sendViaActive(payload);
    }
    
@@ -185,14 +182,10 @@
     * 测试函数:验证大灯控制指令构建
     */
    public static void testBuildLightCommand() {
        System.out.println("=== 测试大灯控制指令构建 ===");
        // 测试1:开灯指令
        byte[] cmd1 = buildLightCommandBytes((byte)1);
        System.out.println("开启大灯: " + bytesToHex(cmd1));
        
        // 测试2:关灯指令
        byte[] cmd2 = buildLightCommandBytes((byte)0);
        System.out.println("关闭大灯: " + bytesToHex(cmd2));
    }
}