Skip to content

Commit

Permalink
Fixed circular reference for equipment id verification of pumps. #703
Browse files Browse the repository at this point in the history
  • Loading branch information
rstrouse committed Mar 16, 2023
1 parent 88412a0 commit 35bba2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controller/Equipment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1398,7 +1398,7 @@ export class PumpCollection extends EqItemCollection<Pump> {
if (typeof add !== 'undefined' && add) return this.add(data || { id: this.data.length + 1, address: address });
return this.createItem(data || { id: this.data.length + 1, address: address });
}
public getNextEquipmentId(range?: EquipmentIdRange, exclude?: number[]): number { return this.getNextEquipmentId(typeof range === 'undefined' ? sys.board.equipmentIds.pumps : range, exclude); }
public getNextEquipmentId(range?: EquipmentIdRange, exclude?: number[]): number { return super.getNextEquipmentId(typeof range === 'undefined' ? sys.board.equipmentIds.pumps : range, exclude); }
}
export class Pump extends EqItem {
public dataName = 'pumpConfig';
Expand Down

0 comments on commit 35bba2d

Please sign in to comment.