Fix failing dismissal of Gadgetbridge messages

master
Markus 2020-04-17 12:29:40 +02:00
parent fe884a9342
commit 28d3a6eb1d
1 changed files with 6 additions and 10 deletions

View File

@ -71,8 +71,9 @@
enabledConsumers = enabledConsumers | switchableConsumers.gps; enabledConsumers = enabledConsumers | switchableConsumers.gps;
if (hrmEventReceived) if (hrmEventReceived)
enabledConsumers = enabledConsumers | switchableConsumers.hrm; enabledConsumers = enabledConsumers | switchableConsumers.hrm;
//if (Bangle.isBluetoothOn()) // First, coarse indication if the bluetooth device is enabled
// enabledConsumers = enabledConsumers | switchableConsumers.bluetooth; if (NodeFilter.getSecuritystatus().connected)
enabledConsumers = enabledConsumers | switchableConsumers.bluetooth;
// Reset the event registration vars // Reset the event registration vars
compassEventReceived = false; compassEventReceived = false;
@ -110,19 +111,14 @@
} }
function reload() { function reload() {
WIDGETS.batchart.width = 24; WIDGETS["batchart"].width = 24;
recordingInterval = setInterval(logBatteryData, recordingInterval10Min); recordingInterval = setInterval(logBatteryData, recordingInterval10Min);
logBatteryData();
} }
// add the widget // add the widget
WIDGETS.batchart = { WIDGETS["batchart"] = {
area: "tl", width: 24, draw: draw, reload: function () { area: "tl", width: 24, draw: draw, reload: reload
reload();
Bangle.drawWidgets();
}
}; };
reload(); reload();