#include <service/graphic_service.h>
#include <sstream>
#include <string>
+
+ #ifdef ROTARYENCODER_HX3508
+ #include "hx3508_hal.h"
+ #endif
#include "ConfigModel.h"
sport_start_data_timer(300); //开启数据获取定时器 刷新频率是300ms
-
+#ifdef ROTARYENCODER_HX3508
+ // 停止旋转编码器
+ hx3508_stop();
+ #endif
#ifdef SYSTEM_LOG_SERVICE
//日志记录
if (Openingway) {
else {
sendtraningstatedata(0, sportdata->duration);
}
-
+ #ifdef ROTARYENCODER_HX3508
+ // 开启旋转编码器
+ hx3508_start();
+ #endif
WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "结束运动");
}
}
void *rotary_encoder_get_hx3508_api(void);
void *rotary_encoder_get_hx3508_peri_attr(void);
void hx3508_get_chip_id(uint16_t *id);
+uint32_t hx3508_start(void);
+uint32_t hx3508_stop(void);
#ifdef __cplusplus
#if __cplusplus