fix: fixed distance tracking

This commit is contained in:
Савелий Савенок 2024-10-20 03:14:35 +03:00
parent a75ffcbfb8
commit dd8aa149af
3 changed files with 2 additions and 3 deletions

View File

@ -6,7 +6,7 @@
"appType": "watchface",
"version": {
"code": 1,
"name": "1.0.1"
"name": "1.0.2"
},
"icon": "icon.png",
"vender": "zepp",

View File

@ -1,6 +1,6 @@
{
"name": "vhs-watch",
"version": "1.0.0",
"version": "1.0.2",
"description": "vhs watch for Zepp OS 3.0 (GTS 4)",
"main": "app.js",
"scripts": {

View File

@ -24,7 +24,6 @@ function updateDistance(dist){
if(distWg){
hmUI.deleteWidget(distWg)
}
dist = (dist * 1000).toFixed(0)
distWg = hmUI.createWidget(hmUI.widget.TEXT_IMG, {
x: moduleX + 150,
y: moduleY,