We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d2cf7b commit bde2e81Copy full SHA for bde2e81
apps/smartbatt/module.js
@@ -64,8 +64,8 @@
64
let currentDrainage = battChange / deltaHours;
65
let drainageChange=data.avgBattDrainage-currentDrainage;
66
//check if drainage rate has fluctuated quite a bit
67
-
68
- if(Math.abs(drainageChange)>currentDrainage*0.7&&data.fluctuationEvent==0){
+ //If fluctuation event is 0, first time fluctuating like this, cycles > 10 so as not to interfere with initial data collection.
+ if(Math.abs(drainageChange)>currentDrainage*0.7&&data.fluctuationEvent==0&&data.totalCycles>=10){
69
//has fluctuated, first time doing so
70
reason="Skipped: Extreme fluctuation";
71
//set fluctuationevent so it knows what was the first time.
0 commit comments