diff --git a/apps/coin_info/app.js b/apps/coin_info/app.js index 8b8051eee..8bf98540e 100644 --- a/apps/coin_info/app.js +++ b/apps/coin_info/app.js @@ -63,34 +63,22 @@ function setDummy(x) { // timeout used to update every minute var drawTimeout; // update the screen -// function draw() { -// layout.tknGraph.label = currentLabel; -// layout.tknName.label = (csTokens[ticker]).toUpperCase(); -// layout.render(); -// -// // schedule a draw for the next minute -// if (drawTimeout) clearTimeout(drawTimeout); -// drawTimeout = setTimeout(function() { -// drawTimeout = undefined; -// draw(); -// }, 1000 - (Date.now() % 1000)); -// } function draw() { - g.clear(); + // + layout.clear(layout.tknName); + layout.clear(layout.tknGraph); - // Add a small delay to ensure the screen has time to clear - setTimeout(function() { - layout.tknGraph.label = currentLabel; - layout.tknName.label = (csTokens[ticker]).toUpperCase(); - layout.render(); + // + layout.tknGraph.label = currentLabel; + layout.tknName.label = (csTokens[ticker]).toUpperCase(); + layout.render(); - // Schedule a draw for the next minute - if (drawTimeout) clearTimeout(drawTimeout); - drawTimeout = setTimeout(function() { - drawTimeout = undefined; - draw(); - }, 1000 - (Date.now() % 1000)); - }, 10); // 10ms delay + // schedule a draw for the next minute + if (drawTimeout) clearTimeout(drawTimeout); + drawTimeout = setTimeout(function() { + drawTimeout = undefined; + draw(); + }, 1000 - (Date.now() % 1000)); } // update time and draw diff --git a/apps/coin_info/metadata.json b/apps/coin_info/metadata.json index b7ff2910b..6932c07ec 100644 --- a/apps/coin_info/metadata.json +++ b/apps/coin_info/metadata.json @@ -1,7 +1,7 @@ { "id": "coin_info", "name": "Crypto-Coins Info", "shortName":"Coins Info", - "version": "0.06.17", + "version": "0.06.18", "description": "Crypto-Coins Infos with the help of the Binance API", "icon": "app.png", "tags": "clkinfo",