public static int LIMIT_VALUE_BPL_H = 0;
public static int LIMIT_VALUE_BPL_L = 0;
public static int LIMIT_VALUE_OXYGEN = 0;
+ public static int LIMIT_VALUE_TEMPERATURE_TOP = 0;
+ public static int LIMIT_VALUE_TEMPERATURE_BOTTOM = 0;
//add by TrillGates=================end
if (!TextUtils.isEmpty(bloodOxygenLimitValue)) {
Config.LIMIT_VALUE_OXYGEN = Integer.parseInt(bloodOxygenLimitValue);
}
+ //体温的
+ String bodyTemperatureTopValue = getICSettingsValue("body_temperature_top_value");
+ ICLogger.d("bodyTemperatureTopValue == > " + bodyTemperatureTopValue);
+ if (!TextUtils.isEmpty(bodyTemperatureTopValue)) {
+ Config.LIMIT_VALUE_TEMPERATURE_TOP = Integer.parseInt(bodyTemperatureTopValue);
+ }
+ String bodTemperatureBottomValue =
+ getICSettingsValue("body_temperature_bottom_value");
+ ICLogger.d("body_temperature_bottom_value == > " + bodTemperatureBottomValue);
+ if (!TextUtils.isEmpty(bodTemperatureBottomValue)) {
+ Config.LIMIT_VALUE_TEMPERATURE_BOTTOM = Integer.parseInt(bodTemperatureBottomValue);
+ }
}
private String getICSettingsValue(String key) {
//检查是否有未读消息需要提醒
private void checkUnreadMessage() {
-
String msg = Config.getLastUnReadMessage(this);
Util.checkMesageNeedNotifi(msg, runtime);
-
-
}
//内部广播StringMessage
import static com.enqualcomm.support.LocationClient.LOCATION_MODE;
import static com.enqualcomm.support.bean.Contact.GROUP_ALL;
import static java.lang.Math.abs;
+import static java.lang.Math.max;
+import static java.lang.Math.min;
/**
* IC协议
String max_temp = list[5];
connection.send(APDG(index));
if (Integer.parseInt(switch_on) == 1) {
- ICLogger.i("Handle BPDG index " + index + ", 体温报警阈值开 min=" + min_temp + ",max=" + max_temp);
+ ICLogger.i("Handle BPDG index " + index + ", 体温报警阈值开 min="
+ + min_temp + ",max=" + max_temp);
runtime.tempInfo.setBodyTempThreshold(Double.valueOf(max_temp), Double.valueOf(min_temp));
Config.needTemperature_abnormal_alarm = true;
+ //阀值入库
+ updateIcSettingsValue("body_temperature_bottom_value", min_temp);
+ updateIcSettingsValue("body_temperature_top_value", max_temp);
+ Config.LIMIT_VALUE_TEMPERATURE_TOP = Integer.parseInt(max_temp);
+ Config.LIMIT_VALUE_TEMPERATURE_BOTTOM = Integer.parseInt(min_temp);
} else {
ICLogger.i("Handle BPDG index " + index + ", 体温报警阈值关 ");
Config.needTemperature_abnormal_alarm = false;