Fix gbridge inflating steps

master
Adam Schmalhofer 2021-12-09 21:14:31 +01:00
parent c88121daf8
commit b99024f9ca
1 changed files with 1 additions and 1 deletions

View File

@ -262,7 +262,7 @@
// Send a summary of activity to Gadgetbridge
function sendActivity(hrm) {
var steps = currentSteps - lastSentSteps;
lastSentSteps = 0;
lastSentSteps = currentSteps;
gbSend({ t: "act", stp: steps, hrm:hrm });
}