Skip to content

Commit

Permalink
fix: avoid shutdown FF above zero
Browse files Browse the repository at this point in the history
  • Loading branch information
Taz5150 committed Mar 31, 2023
1 parent 55808aa commit 2c796b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fbw-a32nx/src/systems/instruments/src/EWD/FF.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class FF extends DisplayComponent<FFProps> {
this.activeVisibility.set(f ? 'visible' : 'hidden');
});

sub.on(`engine${this.props.engine}FF`).atFrequency(1).whenChanged().handle((ff) => {
sub.on(`engine${this.props.engine}FF`).atFrequency(1).handle((ff) => {
const metric = this.props.metric.get();
this.ff.set(fuelForDisplay(ff, metric ? '1' : '0'));
});
Expand Down

0 comments on commit 2c796b2

Please sign in to comment.