diff --git a/apps/batchart/ChangeLog b/apps/batchart/ChangeLog index c2462d397c..394622c78b 100644 --- a/apps/batchart/ChangeLog +++ b/apps/batchart/ChangeLog @@ -9,3 +9,4 @@ 0.09: Fix failing dismissal of Gadgetbridge notifications, record (coarse) bluetooth state 0.10: Remove widget icon and improve listener and setInterval handling for widget (might help with https://github.com/espruino/BangleApps/issues/381) 0.11: Initial port to the BangleJS2 +0.12: Remove debug log diff --git a/apps/batchart/metadata.json b/apps/batchart/metadata.json index 6ab0c0f78e..be01ca7674 100644 --- a/apps/batchart/metadata.json +++ b/apps/batchart/metadata.json @@ -2,7 +2,7 @@ "id": "batchart", "name": "Battery Chart", "shortName": "Battery Chart", - "version": "0.11", + "version": "0.12", "description": "A widget and an app for recording and visualizing battery percentage over time.", "icon": "app.png", "tags": "app,widget,battery,time,record,chart,tool", diff --git a/apps/batchart/widget.js b/apps/batchart/widget.js index d6e00b283f..b1234f3776 100644 --- a/apps/batchart/widget.js +++ b/apps/batchart/widget.js @@ -1,7 +1,7 @@ (() => { let recordingInterval = null; const Storage = require("Storage"); - + const switchableConsumers = { none: 0, lcd: 1, @@ -96,15 +96,14 @@ let logPercent = E.getBattery(); let logTemperature = E.getTemperature(); let logConsumers = getEnabledConsumersValue(); - + let logString = [logTime, logPercent, logTemperature, logConsumers].join(","); - + bcLogFileA.write(logString + "\n"); } } function reload() { - console.log("Reloading BatteryChart widget"); WIDGETS["batchart"].width = 0; if (recordingInterval) { @@ -121,4 +120,4 @@ }; reload(); -})(); \ No newline at end of file +})();