WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "Heart rate detection cycle detection is enabled %d", curTime->tm_min % heartRateDetectionInterval);\r
if (curTime->tm_min % heartRateDetectionInterval == 0 && curTime->tm_sec == 0)\r
{\r
- WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "Automatic heart rate detection starts");\r
+ WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "开启心率周期检测");\r
// 开启心率检测\r
OHOS::HeartModel::GetInstance()->Heart_Control(OHOS::HeartState::Start, OHOS::HeartCheck::PASSIVITY);\r
}\r
#include <algorithm>\r
\r
#include "MainClockView.h"\r
-// #include <bleEvent.h>\r
+\r
+#ifdef BLE_SERVER_ENABLE\r
+#include "bleEvent.h"\r
+#include "bleInstruct.h"\r
+#include "bleService.h"\r
+#endif\r
\r
#include <cmsis_os.h>\r
#include <cmsis_os2.h>\r
}\r
SetAveHeartRateCount(0);\r
// GraphicService::GetInstance()->PostGraphicEvent(\r
- // std::bind(&HeartModel::RefreshHeartRateScreen, HeartModel::GetInstance(),\r
+ // std::bind(&HeartModel::RefreshHeartRateScreen,\r
+ // HeartModel::GetInstance(),\r
// healthDatas.heartRatePerSec, healthDatas.heartRateRest,\r
// healthDatas.heartRateMax.y, healthDatas.heartRateMin.y));\r
}\r
}\r
\r
// GraphicService::GetInstance()->PostGraphicEvent(\r
- // std::bind(&HeartModel::RefreshHeartRateScreen, HeartModel::GetInstance(),\r
+ // std::bind(&HeartModel::RefreshHeartRateScreen,\r
+ // HeartModel::GetInstance(),\r
// healthDatas.heartRatePerSec, healthDatas.heartRateRest,\r
// healthDatas.heartRateMax.y, healthDatas.heartRateMin.y));\r
}\r
uapi_save_runtime_log(RUNTIME_LOG_HEART_MEASURE);\r
}\r
#endif\r
+ heart_data_timer(); // 开始检测\r
}\r
}\r
// 开始检测\r
// 主动检测的亮屏60s\r
heart_start_screen60s_timer();\r
}\r
- heart_data_timer(); // 开始检测\r
}\r
}\r
\r
}\r
/*关闭被动检测*/\r
Heart_Control(HeartState::End, HeartCheck::PASSIVITY);\r
+ WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "结束周期心率检测");\r
return;\r
}\r
//呼吸训练模式下不进行息屏与保存\r