Skip to content

Commit 46fe7ff

Browse files
authored
Update older versions of json to max cycles
1 parent 2e3fa16 commit 46fe7ff

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

apps/smartbatt/module.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,11 @@
6969
data.totalCycles += 1;
7070
data.totalHours += deltaHours;
7171

72+
}else{
73+
data.totalCycles=60;
74+
data.totalHours=100;
7275
}
76+
7377

7478
data.battLastRecorded = batt;
7579
storage.writeJSON(dataFile, data);

0 commit comments

Comments
 (0)