diff --git a/src/nodeClass.js b/src/nodeClass.js index ffbf4d8..235bf2c 100644 --- a/src/nodeClass.js +++ b/src/nodeClass.js @@ -105,7 +105,7 @@ class nodeClass { } /** - * Bind Measurement events to Node-RED status updates. Using internal emitter. --> REMOVE LATER WE NEED ONLY COMPLETE CHILDS AND THEN CHECK FOR UPDATES + * Bind events to Node-RED status updates. Using internal emitter. --> REMOVE LATER WE NEED ONLY COMPLETE CHILDS AND THEN CHECK FOR UPDATES */ _bindEvents() { this.source.emitter.on('mAbs', (val) => { diff --git a/src/specificClass.js b/src/specificClass.js index 6097fdc..236633c 100644 --- a/src/specificClass.js +++ b/src/specificClass.js @@ -53,6 +53,7 @@ class Machine { //basic setup this.emitter = new EventEmitter(); // Own EventEmitter + this.logger = new logger(machineConfig.general.logging.enabled,machineConfig.general.logging.logLevel, machineConfig.general.name); this.configManager = new configManager(); this.defaultConfig = this.configManager.getConfig('rotatingMachine'); // Load default config for rotating machine ( use software type name ? )