JLChen
2021-09-03 fb0dac414a5422139ea805923bde0884f055f58d
app/src/main/java/com/hdl/sdk/hdl_sdk/activity/GeothermalActivity.java
@@ -162,8 +162,27 @@
                    return;
                }
                proDialog.show();
//                HDLCommand.geothermalCtrlTemp(appliancesInfo, tempInt);//自动根据当前模式设置当前模式的温度。
                HDLCommand.geothermalCtrlTemp(appliancesInfo, tempInt);//自动根据当前模式设置当前模式的温度。
                switch (gModeState) {
                    case 1:
                    case 2:
                    case 3:
                    case 4:
                        HDLCommand.geothermalCtrlTemp(appliancesInfo, tempInt);//自动根据当前模式设置当前模式的温度。
                        break;
                    case 5:
                        proDialog.dismiss();
                        //当前地热模式为自动
                        showToast("自动模式,不能控制温度");
                        break;
                    default:
                        proDialog.dismiss();
                        //当前地热模式为自动
                        showToast("未知模式,不能控制温度");
                        break;
                }
//                switch (gModeState) {
//
@@ -393,6 +412,7 @@
            message = getSwichStateString(mGeothermalBackInfo.getIsOn());
            message += "\n" + getModeStateString(mGeothermalBackInfo.getgMode());
            message += "\n" + "室内温度:" + mGeothermalBackInfo.getgCurrentTemp();
            message += "\n" + "普通模式温度:" + mGeothermalBackInfo.getgNormalTemp();
            message += "\n" + "白天模式温度:" + mGeothermalBackInfo.getgDayTemp();
            message += "\n" + "夜间模式温度:" + mGeothermalBackInfo.getgNightTemp();
@@ -404,6 +424,6 @@
        mTextView.setText(message);
        showToast(message);
        HDLLog.I(message);
        HDLLog.I("地热"+message);
    }
}