parent
8141e30438
commit
e5680504e0
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue