bthrm - Fix lint issues caused by obsolete code
parent
4c81e249ee
commit
f162809794
|
|
@ -318,20 +318,6 @@ exports.enable = () => {
|
||||||
return result.then(()=>log("Handled characteristics"));
|
return result.then(()=>log("Handled characteristics"));
|
||||||
};
|
};
|
||||||
|
|
||||||
let createServicePromise = function(service) {
|
|
||||||
log("Create service promise", service);
|
|
||||||
let result = Promise.resolve();
|
|
||||||
result = result.then(()=>{
|
|
||||||
log("Handling service" + service.uuid);
|
|
||||||
return service.getCharacteristics().then((c)=>createCharacteristicsPromise(c));
|
|
||||||
});
|
|
||||||
return result.then(()=>log("Handled service" + service.uuid));
|
|
||||||
};
|
|
||||||
|
|
||||||
let attachServicePromise = function(promise, service) {
|
|
||||||
return promise.then(()=>createServicePromise(service));
|
|
||||||
};
|
|
||||||
|
|
||||||
let initBt = function () {
|
let initBt = function () {
|
||||||
log("initBt with blockInit: " + blockInit);
|
log("initBt with blockInit: " + blockInit);
|
||||||
if (blockInit && !powerdownRequested){
|
if (blockInit && !powerdownRequested){
|
||||||
|
|
|
||||||
|
|
@ -21,8 +21,6 @@
|
||||||
if (settings.debuglog)
|
if (settings.debuglog)
|
||||||
log = print;
|
log = print;
|
||||||
|
|
||||||
const bthrm = require("bthrm");
|
|
||||||
|
|
||||||
function applyCustomSettings(){
|
function applyCustomSettings(){
|
||||||
writeSettings("enabled",true);
|
writeSettings("enabled",true);
|
||||||
writeSettings("replace",settings.custom_replace);
|
writeSettings("replace",settings.custom_replace);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue