fix(api): samples issues

This commit is contained in:
TinyOh 2019-03-15 14:55:46 +08:00
parent 189a2bd6b7
commit dacad9483e
2 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ int main(int argc, char *argv[]) {
*/
painter.DrawImgData(img, *left_data.img);
if (!motion_datas.empty()) {
if (!motion_datas.empty() && motion_datas.size() > 0) {
painter.DrawImuData(img, *motion_datas[0].imu);
}

View File

@ -119,7 +119,7 @@ int main(int argc, char *argv[]) {
/*
painter.DrawImgData(img, *left_data.img);
if (!motion_datas.empty()) {
if (!motion_datas.empty() && motion_datas.size() > 0) {
painter.DrawImuData(img, *motion_datas[0].imu);
}
*/