Skip to content

Commit

Permalink
#988 circuits and features are NOT the same!
Browse files Browse the repository at this point in the history
  • Loading branch information
tagyoureit committed Jul 2, 2024
1 parent 374330f commit 429d818
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controller/boards/SystemBoard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4613,7 +4613,7 @@ export class ValveCommands extends BoardCommands {
typeof state.features.get().find(elem => typeof elem.type !== 'undefined' && elem.type.name === 'spadrain' && elem.isOn === true) !== 'undefined' : false;
// Check to see if there is a spillway circuit or feature on. If it is on then the return will be diverted no mater what.
let spillway = sys.equipment.shared ?
// typeof state.circuits.get().find(elem => typeof elem.type !== 'undefined' && elem.type.name === 'spillway' && elem.isOn === true) !== 'undefined' ||
typeof state.circuits.get().find(elem => typeof elem.type !== 'undefined' && elem.type.name === 'spillway' && elem.isOn === true) !== 'undefined' ||
typeof state.features.get().find(elem => typeof elem.type !== 'undefined' && elem.type.name === 'spillway' && elem.isOn === true) !== 'undefined' : false;
let spa = sys.equipment.shared ? state.circuits.getItemById(1).isOn : false;
let pool = sys.equipment.shared ? state.circuits.getItemById(6).isOn : false;
Expand Down

0 comments on commit 429d818

Please sign in to comment.