Skip to content

Commit

Permalink
Reintroduce Versa Lite without Floors
Browse files Browse the repository at this point in the history
  • Loading branch information
lemnet committed Mar 30, 2021
1 parent 4b99456 commit d9a32af
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 2 additions & 3 deletions app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import { me as device } from "device";
import * as messaging from "messaging";
import * as fs from "fs";


// Update the clock every minute
clock.granularity = "minutes";

Expand Down Expand Up @@ -267,12 +266,12 @@ main.onclick = (evt) => {
actText.text = today.adjusted.calories || 0;
currentAct = 2;
}
else if (currentAct == 2) { // calo
else if (currentAct == 2 && device.modelId != 38) { // calo
actIcon.href="icons/stairs.png"
actText.text = today.adjusted.elevationGain || 0;
currentAct = 3;
}
else if (currentAct == 3) { // elevation
else if (currentAct == 3 || (currentAct == 2 && device.modelId == 38)) { // elevation
actIcon.href="icons/step.png"
actText.text = today.adjusted.steps || 0;
currentAct = 0;
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
],
"buildTargets": [
"meson",
"mira"
"mira",
"gemini"
],
"i18n": {
"en-US": {
Expand Down

0 comments on commit d9a32af

Please sign in to comment.