提交 cb207f31 编写于 作者: L li-yaoyao777

修改错误日志信息

Signed-off-by: Nli-yaoyao777 <liyaoyao7@huawei.com>
上级 c8353203
...@@ -2294,9 +2294,7 @@ createRotationMatrix(gravity: Array&lt;number&gt;, geomagnetic: Array&lt;number& ...@@ -2294,9 +2294,7 @@ createRotationMatrix(gravity: Array&lt;number&gt;, geomagnetic: Array&lt;number&
console.error('error code is: ' + err.code + ', message: ' + err.message); console.error('error code is: ' + err.code + ', message: ' + err.message);
return; return;
} }
for (var i=0; i < data.rotation.length; i++) { console.info(JSON.stringify(data));
console.info(JSON.stringify(data));
}
}) })
``` ```
...@@ -2327,10 +2325,7 @@ createRotationMatrix(gravity: Array&lt;number&gt;, geomagnetic: Array&lt;number& ...@@ -2327,10 +2325,7 @@ createRotationMatrix(gravity: Array&lt;number&gt;, geomagnetic: Array&lt;number&
```js ```js
const promise = sensor.createRotationMatrix([-0.27775216, 0.5351276, 9.788099], [210.87253, -78.6096, -111.44444]); const promise = sensor.createRotationMatrix([-0.27775216, 0.5351276, 9.788099], [210.87253, -78.6096, -111.44444]);
promise.then((data) => { promise.then((data) => {
console.info('createRotationMatrix_promise successed'); console.info(JSON.stringify(data));
for (var i=0; i < data.rotation.length; i++) {
console.info(JSON.stringify(data));
}
}).catch((err) => { }).catch((err) => {
console.info('promise failed'); console.info('promise failed');
}) })
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册