Skip to content

Commit

Permalink
batchart: remove log
Browse files Browse the repository at this point in the history
  • Loading branch information
bobrippling committed Jun 30, 2023
1 parent d8c41b5 commit e5e2a33
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions apps/batchart/widget.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(() => {
let recordingInterval = null;
const Storage = require("Storage");

const switchableConsumers = {
none: 0,
lcd: 1,
Expand Down Expand Up @@ -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) {
Expand All @@ -121,4 +120,4 @@
};

reload();
})();
})();

0 comments on commit e5e2a33

Please sign in to comment.