From 498c442cd1be3a53364b42660a8eee9ffe34051a Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期二, 10 八月 2021 11:26:13 +0800
Subject: [PATCH] 2021-08-10 1.

---
 hdl_core/src/main/java/com/hdl/sdk/hdl_core/HDLDeviceManger/Core/HDLDeviceManager.java |   47 +++++++++++++++++++++--------------------------
 1 files changed, 21 insertions(+), 26 deletions(-)

diff --git a/hdl_core/src/main/java/com/hdl/sdk/hdl_core/HDLDeviceManger/Core/HDLDeviceManager.java b/hdl_core/src/main/java/com/hdl/sdk/hdl_core/HDLDeviceManger/Core/HDLDeviceManager.java
index 3124f53..74d178f 100644
--- a/hdl_core/src/main/java/com/hdl/sdk/hdl_core/HDLDeviceManger/Core/HDLDeviceManager.java
+++ b/hdl_core/src/main/java/com/hdl/sdk/hdl_core/HDLDeviceManger/Core/HDLDeviceManager.java
@@ -3134,39 +3134,34 @@
      * @param getDatas
      */
     private static void handleHVACCtrlData(UdpDataBean getDatas) {
-        switch (getDatas.command) {
-            case Configuration.AIR_HVAC_CTRL_BACK_COMMAND:
-                outter:
-                for (int i = 0, len = devicesDataList.size(); i < len; i++) {
-                    if (devicesDataList.get(i).getSourceSubnetID() == getDatas.sourceSubnetID
-                            && devicesDataList.get(i).getSourceDeviceID() == getDatas.sourceDeviceID
-                    ) {
-                        List<AppliancesInfo> infos = devicesDataList.get(i).getAppliancesInfoList();
-                        for (int j = 0, len2 = infos.size(); j < len2; j++) {
-                            if (getDatas.addBytes.length > 0) {
-                                if (infos.get(j).getBigType() == Configuration.AIR_BIG_TYPE
-                                        && infos.get(j).getDeviceType() == HDLApConfig.TYPE_AC_HVAC
-                                        && infos.get(j).getChannelNum() == (getDatas.addBytes[0] & 0xFF)) {
+        outter:
+        for (int i = 0, len = devicesDataList.size(); i < len; i++) {
+            if (devicesDataList.get(i).getSourceSubnetID() == getDatas.sourceSubnetID
+                    && devicesDataList.get(i).getSourceDeviceID() == getDatas.sourceDeviceID
+            ) {
+                List<AppliancesInfo> infos = devicesDataList.get(i).getAppliancesInfoList();
+                for (int j = 0, len2 = infos.size(); j < len2; j++) {
+                    if (getDatas.addBytes.length > 0) {
+                        if (infos.get(j).getBigType() == Configuration.AIR_BIG_TYPE
+                                && infos.get(j).getDeviceType() == HDLApConfig.TYPE_AC_HVAC
+                                && infos.get(j).getChannelNum() == (getDatas.addBytes[0] & 0xFF)) {
 
-                                    devicesDataList.get(i).getAppliancesInfoList().get(j).setArrCurState(getDatas.addBytes);
-                                    AppliancesInfo mHvacAirInfo = devicesDataList.get(i).getAppliancesInfoList().get(j);
-                                    AirHVACBackInfo info = new AirHVACBackInfo(mHvacAirInfo);
-                                    setDeviceCtrlSuccessStateWithInfo(infos.get(j), true);
-                                    EventBus.getDefault().post(new AirHVACFeedBackEvent(info, true));
-                                    break outter;
-                                }
+                            devicesDataList.get(i).getAppliancesInfoList().get(j).setArrCurState(getDatas.addBytes);
+                            AppliancesInfo mHvacAirInfo = devicesDataList.get(i).getAppliancesInfoList().get(j);
+                            AirHVACBackInfo info = new AirHVACBackInfo(mHvacAirInfo);
+                            setDeviceCtrlSuccessStateWithInfo(infos.get(j), true);
+                            EventBus.getDefault().post(new AirHVACFeedBackEvent(info, true));
+                            break outter;
+                        }
 //                                else {
 //                                    HDLLog.E("鎺у埗HVAC鐘舵�佸弽棣堟暟鎹紓甯�");
 //                                }
-                            }
-                        }
-
-                        break outter;
                     }
                 }
-                break;
-        }
 
+                break outter;
+            }
+        }
     }
 
     /**

--
Gitblit v1.8.0