diff --git a/src/specificClass.js b/src/specificClass.js index a45d9f5..753b10f 100644 --- a/src/specificClass.js +++ b/src/specificClass.js @@ -61,7 +61,6 @@ class MachineGroup { //listen for machine pressure changes this.logger.debug(`Listening for pressure changes from machine ${child.config.general.id}`); - child.measurements.emitter.on("pressure.measured.differential", (eventData) => { this.logger.debug(`Pressure update from ${child.config.general.id}: ${eventData.value} ${eventData.unit}`); this.handlePressureChange(); @@ -906,6 +905,7 @@ class MachineGroup { } await this.prioPercentageControl(demandQout,priorityList); break; + case "optimalcontrol": this.logger.debug(`Calculating optimal control. Input flow demand: ${demandQ} scaling : ${scaling} -> ${demandQout}`); await this.optimalControl(demandQout,powerCap);