更新 src/rn-dy-glucose-driver.js

fix():1.修改获取电池电量传参的错误。
This commit is contained in:
lvwang2002 2024-09-11 16:12:31 +00:00
parent 8141e30438
commit e5680504e0
1 changed files with 1 additions and 1 deletions

View File

@ -335,7 +335,7 @@ export default class RNDYGlucoseDriver {
this._eventMap[DYG_ON_GET_BATTERY] = (deviceInfo) => { this._eventMap[DYG_ON_GET_BATTERY] = (deviceInfo) => {
console.log(TAG, 'resolve ' + DYG_ON_GET_BATTERY); console.log(TAG, 'resolve ' + DYG_ON_GET_BATTERY);
const { value } = deviceInfo; const { value } = deviceInfo;
resolve(percent); resolve(value);
} }
}); });
return this._mixTimeoutPromise(devicePromise); return this._mixTimeoutPromise(devicePromise);