feature():1.去掉动态血糖的电池电量的百分比的算法
This commit is contained in:
parent
b11e780050
commit
8141e30438
|
|
@ -335,7 +335,6 @@ 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;
|
||||||
const percent = (value - 2.85) / (2.95 - 2.85); // 改成2.95貌似比较合适
|
|
||||||
resolve(percent);
|
resolve(percent);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue