mirror of https://github.com/espruino/BangleApps
bthrm - Fix new lint warnings
parent
f162809794
commit
08f412f7f5
|
@ -302,22 +302,6 @@ exports.enable = () => {
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
let createCharacteristicsPromise = function(newCharacteristics) {
|
|
||||||
log("Create characteristics promis ", newCharacteristics);
|
|
||||||
let result = Promise.resolve();
|
|
||||||
for (let c of newCharacteristics){
|
|
||||||
if (!supportedCharacteristics[c.uuid]) continue;
|
|
||||||
log("Supporting characteristic", c);
|
|
||||||
characteristics.push(c);
|
|
||||||
if (c.properties.notify){
|
|
||||||
addNotificationHandler(c);
|
|
||||||
}
|
|
||||||
|
|
||||||
result = attachCharacteristicPromise(result, c);
|
|
||||||
}
|
|
||||||
return result.then(()=>log("Handled characteristics"));
|
|
||||||
};
|
|
||||||
|
|
||||||
let initBt = function () {
|
let initBt = function () {
|
||||||
log("initBt with blockInit: " + blockInit);
|
log("initBt with blockInit: " + blockInit);
|
||||||
if (blockInit && !powerdownRequested){
|
if (blockInit && !powerdownRequested){
|
||||||
|
|
Loading…
Reference in New Issue