forked from RnD/machineGroupControl
updated function for registration of machines
This commit is contained in:
@@ -81,7 +81,14 @@ class MachineGroup {
|
||||
this.dynamicTotals = this.calcDynamicTotals();
|
||||
}
|
||||
|
||||
registerOnChildEvents(){}
|
||||
registerChild(child,softwareType) {
|
||||
this.logger.debug('Setting up childs specific for this class');
|
||||
|
||||
if(softwareType == "machine"){
|
||||
// Check if the machine is already registered
|
||||
this.machines[child.config.general.id] === undefined ? this.machines[child.config.general.id] = child : this.logger.warn(`Machine ${child.config.general.id} is already registered.`);
|
||||
}
|
||||
}
|
||||
|
||||
calcAbsoluteTotals() {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user