Quellcode durchsuchen

난방 상세 온도 조절 시, 멀티 제어로 하면 약간의 delay로 인해 온도 text가 왔다 갔다 하는 경우가 있을 걸 방지.

jslee(madeinlab) vor 3 Jahren
Ursprung
Commit
5e63eb18c1

+ 6 - 15
WallPadHomeCtrl/src/main/java/kr/co/icontrols/wallpadhomectrl/screen/screen_multi/HeatingV2PopupTestScreen.java

@@ -887,14 +887,14 @@ public class HeatingV2PopupTestScreen extends WpadScreen {
                     DebugLogOutput("onTouchEvent [DefaultTab-TEMP_UP(short)] BUTTON !!!");
                     //Sound().Play(SND.effect.TOUCH_LATCHED);
                     Data_TempUpDn(true);
-                    Device_TempSetDelayed();
+                    Device_TempSetDelayed(10);
                     //Sample_ChangeValveReflect();
                     //drawUpdate((byte) mCurrentRoomIndex);
                 } else if (TargetId == ID.heatingV2Popup.tabDefault.button.TEMP_DN) {
                     DebugLogOutput("onTouchEvent [DefaultTab-TEMP_DN(short)] BUTTON !!!");
                     //Sound().Play(SND.effect.TOUCH_LATCHED);
                     Data_TempUpDn(false);
-                    Device_TempSetDelayed();
+                    Device_TempSetDelayed(10);
                     //Sample_ChangeValveReflect();
                     //drawUpdate((byte) mCurrentRoomIndex);
                 }
@@ -902,25 +902,16 @@ public class HeatingV2PopupTestScreen extends WpadScreen {
                 if (TargetId == ID.heatingV2Popup.tabDefault.button.TEMP_UP) {
                     DebugLogOutput("onTouchEvent [DefaultTab-TEMP_UP(long)] BUTTON !!!");
                     Sound().Play(SND.effect.TOUCH_LATCHED);
-
-
                     Data_TempUpDn(true);
-
-                    Device_TempSetDelayed();
-
+                    Device_TempSetDelayed(800);
                     //Sample_ChangeValveReflect();
-
                     drawUpdate((byte) mCurrentRoomIndex);
                 } else if (TargetId == ID.heatingV2Popup.tabDefault.button.TEMP_DN) {
                     DebugLogOutput("onTouchEvent [DefaultTab-TEMP_DN(long)] BUTTON !!!");
                     Sound().Play(SND.effect.TOUCH_LATCHED);
-
-
                     Data_TempUpDn(false);
-
-                    Device_TempSetDelayed();
+                    Device_TempSetDelayed(800);
                     //Sample_ChangeValveReflect();
-
                     drawUpdate((byte) mCurrentRoomIndex);
                 }
             }
@@ -1423,7 +1414,7 @@ public class HeatingV2PopupTestScreen extends WpadScreen {
      *
      * @return (boolean) true : 성공 , false : 실패
      */
-    private boolean Device_TempSetDelayed() {
+    private boolean Device_TempSetDelayed(int delayTime) {
         // 1. 핸들러 null 체크
         if (mDeviceTempSetHandler == null) return false;
 
@@ -1436,7 +1427,7 @@ public class HeatingV2PopupTestScreen extends WpadScreen {
         mData.TempSetDelayedEnable = true;
 
         // 4. 핸들러에 메시지 전송
-        mDeviceTempSetHandler.sendEmptyMessageDelayed(DEVICE_CMD_TEMP_CHANGE, 500);
+        mDeviceTempSetHandler.sendEmptyMessageDelayed(DEVICE_CMD_TEMP_CHANGE, delayTime);
 
         return true;
     }