开放C5 SGL PPG Temp sensor 命令下发
authorsnickersun <scy@incartech.cn>
Sat, 6 Feb 2021 08:30:29 +0000 (16:30 +0800)
committersnickersun <scy@incartech.cn>
Sat, 6 Feb 2021 08:30:29 +0000 (16:30 +0800)
开放C5 SGL 佩戴检测 alarm 权限

app/src/main/java/com/enqualcomm/support/Config.java
app/src/main/java/com/enqualcomm/support/CoreService.java

index 98163c4..2752ccf 100644 (file)
@@ -553,8 +553,8 @@ public class Config {
       needAllwaysAlarmCutOff=true;
       needAllwaysAlarmFenceOut=false;
       needTemperature_abnormal_alarm=false;
-      noPPGSensor=true;
-      noTempSensor=true;
+      noPPGSensor=false;
+      noTempSensor=false;
       C5_noBroadCastActionStrip=true;
     }else if(custom_name.equals("L02")){
       noPushTxtReadReply=false;//即爱需要阅读反馈
index 4a6fab8..1e7c70f 100644 (file)
@@ -747,6 +747,8 @@ public class CoreService extends Service {
             Config.ConfigAlarm(Runtime.AlarmType.ALARM_CUTOFF, true);
             Config.ConfigAlarm(Runtime.AlarmType.ALARM_ILLEGAL_CUTOFF, true);
             Config.ConfigAlarm(Runtime.AlarmType.ALARM_LOCK_WATCH, true);
+            Config.ConfigAlarm(Runtime.AlarmType.ALARM_WEARED, true);
+            Config.ConfigAlarm(Runtime.AlarmType.ALARM_ANTIOFF, true);
             Config.forceMoveCheck = false; //对定位不进行运动检测。
             if (Config.getConfigInitFlag(this) == 0) {
                 Config.setLocationMode(this, CUSTOM_MOD8_GPS);