李勇

修改激光笔模块的数据,可以传入空数组

... ... @@ -35,7 +35,7 @@ import QuestionApe from 'apes/QuestionApe';
import UTF8 from 'utf-8';
let loger = Loger.getLoger('McuClient');
let _sdkInfo = {"version": "v1.56.0.20170727", "author": "www.3mang.com"};
let _sdkInfo = {"version": "v1.56.1.20170727", "author": "www.3mang.com"};
//APE
let _sass;
... ...
... ... @@ -105,7 +105,7 @@ class CursorApe extends Ape {
///////鼠标数据发送/////////////////////////////////////////
packPdu(_param, _itemIdx) {
//验证坐标点集合数组是否合法
if (_param.pointGroup == null || _param.pointGroup.length < 1) {
if (_param.pointGroup == null) {
this._emit(MessageTypes.MCU_ERROR, MessageTypes.ERR_APE_INTERFACE_PARAM_WRONG);
return null;
}
... ...