Fix push motion datas in callback

This commit is contained in:
Kalman 2018-11-08 15:31:15 +08:00
parent a57edded4b
commit 8331b8415d
2 changed files with 4 additions and 2 deletions

View File

@ -74,7 +74,9 @@ void Motions::SetMotionCallback(motion_callback_t callback) {
std::lock_guard<std::mutex> _(mtx_datas_);
motion_data_t data = {imu};
motion_datas_.push_back(data);
if (motion_datas_enabled_) {
motion_datas_.push_back(data);
}
motion_callback_(data);
}

View File

@ -394,7 +394,7 @@ struct device {
living_count++;
} else {
living_count = 0;
LOG(INFO) << "UVC pulse detection,Please ignore.";
// LOG(INFO) << "UVC pulse detection,Please ignore.";
}
}