feature():1.去掉动态血糖的电池电量的百分比的算法

This commit is contained in:
lvwang2002 2024-09-11 23:38:37 +08:00
parent b11e780050
commit 8141e30438
1 changed files with 0 additions and 1 deletions

View File

@ -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);
} }
}); });