fix: fixed distance tracking
This commit is contained in:
parent
a75ffcbfb8
commit
dd8aa149af
2
app.json
2
app.json
@ -6,7 +6,7 @@
|
||||
"appType": "watchface",
|
||||
"version": {
|
||||
"code": 1,
|
||||
"name": "1.0.1"
|
||||
"name": "1.0.2"
|
||||
},
|
||||
"icon": "icon.png",
|
||||
"vender": "zepp",
|
||||
|
@ -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": {
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user