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",
|
"appType": "watchface",
|
||||||
"version": {
|
"version": {
|
||||||
"code": 1,
|
"code": 1,
|
||||||
"name": "1.0.1"
|
"name": "1.0.2"
|
||||||
},
|
},
|
||||||
"icon": "icon.png",
|
"icon": "icon.png",
|
||||||
"vender": "zepp",
|
"vender": "zepp",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "vhs-watch",
|
"name": "vhs-watch",
|
||||||
"version": "1.0.0",
|
"version": "1.0.2",
|
||||||
"description": "vhs watch for Zepp OS 3.0 (GTS 4)",
|
"description": "vhs watch for Zepp OS 3.0 (GTS 4)",
|
||||||
"main": "app.js",
|
"main": "app.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -24,7 +24,6 @@ function updateDistance(dist){
|
|||||||
if(distWg){
|
if(distWg){
|
||||||
hmUI.deleteWidget(distWg)
|
hmUI.deleteWidget(distWg)
|
||||||
}
|
}
|
||||||
dist = (dist * 1000).toFixed(0)
|
|
||||||
distWg = hmUI.createWidget(hmUI.widget.TEXT_IMG, {
|
distWg = hmUI.createWidget(hmUI.widget.TEXT_IMG, {
|
||||||
x: moduleX + 150,
|
x: moduleX + 150,
|
||||||
y: moduleY,
|
y: moduleY,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user