diff --git a/apps/thermom/ChangeLog b/apps/thermom/ChangeLog index d33411a93..0b8c325e5 100644 --- a/apps/thermom/ChangeLog +++ b/apps/thermom/ChangeLog @@ -5,3 +5,4 @@ Update every 10s, average last 5 readings Changes based on #1092 0.06: Minor tweaks for stability. Update every 5 seconds +0.07: Add back button diff --git a/apps/thermom/app.js b/apps/thermom/app.js index 450bd11e6..3aa99c015 100644 --- a/apps/thermom/app.js +++ b/apps/thermom/app.js @@ -24,7 +24,7 @@ function onTemperature(p) { // Gets the temperature in the most accurate way (pressure sensor or inbuilt thermistor) function drawTemperature() { if (Bangle.getPressure) { - Bangle.getPressure().then(p =>{if (p) onTemperature(p)}); + Bangle.getPressure().then(p =>{if (p) onTemperature(p);}); } else { onTemperature({ temperature : E.getTemperature() @@ -36,6 +36,9 @@ setInterval(function() { drawTemperature(); }, 5000); Bangle.loadWidgets(); -Bangle.drawWidgets(); +Bangle.setUI({ + mode : "custom", + back : function() {load();} +}); E.showMessage("Reading temperature..."); drawTemperature(); diff --git a/apps/thermom/metadata.json b/apps/thermom/metadata.json index c0cfa354d..a215df624 100644 --- a/apps/thermom/metadata.json +++ b/apps/thermom/metadata.json @@ -1,7 +1,7 @@ { "id": "thermom", "name": "Thermometer", - "version": "0.06", + "version": "0.07", "description": "Displays the current temperature in degree Celsius/Fahrenheit (depending on locale), updates every 10 seconds with average of last 5 readings.", "icon": "app.png", "tags": "tool",