JLChen
2020-06-01 f7133566c6608ec831734590e508c70bad95ffe8
hdl_core/src/main/java/com/hdl/sdk/hdl_core/HDLAppliances/HDLAirCondition/Parser/AirCtrlParser.java
@@ -122,7 +122,11 @@
    /**
     * 生成默认数据
     *
     * 0 开关状态
     * 1 模式
     * 2 温度
     * 3 风速
     * 4
     * @return
     */
    public static byte[] getNewAcByte() {
@@ -138,7 +142,7 @@
    public static byte[] getAcAddByte(AppliancesInfo appliancesInfo, int type, int state) {
        try {
            AppliancesInfo newInfo = null;
            AppliancesInfo newInfo = appliancesInfo;
            byte[] airBytes = null;
            outter:
            for (int i = 0; i < HDLDeviceManager.devicesDataList.size(); i++) {
@@ -163,6 +167,11 @@
            byte[] addBytes = new byte[13];
            if (airBytes != null && airBytes.length >= 6) {
                //2020-05-28 如果温度为0自动修改为28
                if((airBytes[2] & 0xff) == 0){
                    airBytes[2] = (byte)28;
                }
                addBytes[0] = (byte) newInfo.getChannelNum();
                addBytes[1] = 0;
                addBytes[2] = airBytes[4];