常规小优化
This commit is contained in:
@ -768,8 +768,9 @@ class BleHelper {
|
||||
} catch (convertException) {
|
||||
if (str && (str.trim().startsWith('{') || str.trim().startsWith('['))) {
|
||||
console.error("JSON解析失败(可能是格式错误的数据)", convertException);
|
||||
console.error("错误的数据", str);
|
||||
|
||||
}
|
||||
console.error("错误的数据", str);
|
||||
}
|
||||
|
||||
if (isUpdate) {
|
||||
@ -790,7 +791,7 @@ class BleHelper {
|
||||
str: str,
|
||||
hexs: hexs
|
||||
};
|
||||
// console.log("监听到特征值:", recData);
|
||||
console.log("监听到特征值:", recData);
|
||||
if (this.cfg.receivDataCallback) {
|
||||
|
||||
if (this.cfg.receivDataCallback.length > 0) {
|
||||
|
||||
Reference in New Issue
Block a user