Skip to content

Commit

Permalink
fix(cond): Fixing Temp-Zone-Vars in CRZ-Page (flybywiresim#8243)
Browse files Browse the repository at this point in the history
* Fixing Temp-Zone-Vars in CRZ-Page

* Added missing entry in changelog
  • Loading branch information
cptnuss-ops authored Oct 13, 2023
1 parent 1592d9a commit ba151e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
1. [FMS] Use station declination when appropriate for fix info and place/bearing radials - @tracernz (Mike)
1. [MCDU] Fixed the FMGC annunciator light not illuminating - @tracernz (Mike)
1. [COND] Add Air Conditioning systems failures - @mjuhe (Miquel Juhe)
1. [COND] Fixed Temp-Indication on CRZ page showing cockpit temperature for fwd and aft cabin - @cptnuss-ops (Lukas)

## 0.10.0

Expand Down
4 changes: 2 additions & 2 deletions fbw-a32nx/src/systems/instruments/src/SD/Pages/Crz/Crz.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,8 @@ export const PressureComponent = () => {
export const CondComponent = () => {
const [unit] = usePersistentProperty('CONFIG_USING_METRIC_UNIT', '1');
let [cockpitCabinTemp] = useSimVar('L:A32NX_COND_CKPT_TEMP', 'celsius', 1000);
let [fwdCabinTemp] = useSimVar('L:A32NX_COND_CKPT_TEMP', 'celsius', 1000);
let [aftCabinTemp] = useSimVar('L:A32NX_COND_CKPT_TEMP', 'celsius', 1000);
let [fwdCabinTemp] = useSimVar('L:A32NX_COND_FWD_TEMP', 'celsius', 1000);
let [aftCabinTemp] = useSimVar('L:A32NX_COND_AFT_TEMP', 'celsius', 1000);

if (unit === '0') { // converting to F if 'lbs' selected in EFB
cockpitCabinTemp = UnitType.CELSIUS.convertTo(cockpitCabinTemp, UnitType.FAHRENHEIT);
Expand Down

0 comments on commit ba151e1

Please sign in to comment.