Indexed PITOT HEAT simvar doesn't match switch and circuit states

Version: 1.38.2.0

Frequency: Consistently

Severity: High- because it can affect de-icing behaviour

Bug description:
When systems.cfg is set up with multiple PITOT HEAT circuits, the PITOT HEAT SWITCH:index variables work correctly, CIRCUIT PITOT HEAT ON:index also works correctly but PITOT HEAT:index doesn’t match the state of the other variables.

If any PITOT HEAT SWITCH:index is set to ON, then PITOT HEAT:index will indicate True, even if the particular circuit is off, be that via breaker or circuit setting.

Logged as High Severity as it can have an effect on the de-icing behaviour and can bleed over to FS2024/Career mode.

Repro steps:

Attachments:

Private attachments: Send a PM to @PrivateContent with the link to this topic and the link to download your content