bool Gettagstuats{false}; // 训练达标标志位
bool Startstate{false}; // 开始训练标志位
bool Endstate{false}; // 结束训练标志位
- bool Openingway{false}; // 运动开启方式
+ bool Openingway{false}; // 运动开启方式 [0 手表 1 app]
bool MomentumFlag{false}; // 训练量达标标志位
bool Openstate{false}; // 运动是否开始
/*设置运动状态*/
void TraingModel::SetSportState(ExerciseState state)
{
- if (state != ExerciseState::General)
+ /*运动开始并且是app发起的运动*/
+ if (state != ExerciseState::General && Openingway == true)
{
sendtraningstatedata(static_cast<uint8_t>(state), sportdata->duration);
}