Fix failing dismissal of Gadgetbridge messages
parent
fe884a9342
commit
28d3a6eb1d
|
|
@ -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();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue