File tree 1 file changed +4
-2
lines changed
src/plugins/simulator/fsxcommon
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -741,7 +741,6 @@ namespace BlackSimPlugin::FsxCommon
741
741
742
742
const bool changedCom1Active = myAircraft.getCom1System ().getFrequencyActive () != com1.getFrequencyActive () && com1.getFrequencyActive () != m_lastCom1Active;
743
743
const bool changedCom1Standby = myAircraft.getCom1System ().getFrequencyStandby () != com1.getFrequencyStandby () && com1.getFrequencyStandby () != m_lastCom1Standby;
744
- const bool changedCom1 = changedCom1Active || changedCom1Standby;
745
744
746
745
// Avoid overwrite of 8.33 kHz frequency with data from simulator
747
746
if (!changedCom1Active)
@@ -762,6 +761,8 @@ namespace BlackSimPlugin::FsxCommon
762
761
m_lastCom1Standby.setNull ();
763
762
}
764
763
764
+ const bool changedCom1 = myAircraft.getCom1System () != com1;
765
+
765
766
m_simCom1 = com1;
766
767
Q_UNUSED (com1Test)
767
768
@@ -774,7 +775,6 @@ namespace BlackSimPlugin::FsxCommon
774
775
com2.setReceiveEnabled (com2Status == 0 && (comReceiveAll || com2Transmit));
775
776
const bool changedCom2Active = myAircraft.getCom2System ().getFrequencyActive () != com2.getFrequencyActive () && com2.getFrequencyActive () != m_lastCom2Active;
776
777
const bool changedCom2Standby = myAircraft.getCom2System ().getFrequencyStandby () != com2.getFrequencyStandby () && com2.getFrequencyStandby () != m_lastCom2Standby;
777
- const bool changedCom2 = changedCom2Active || changedCom2Standby;
778
778
779
779
// Avoid overwrite of 8.33 kHz frequency with data from simulator
780
780
if (!changedCom2Active)
@@ -795,6 +795,8 @@ namespace BlackSimPlugin::FsxCommon
795
795
m_lastCom2Standby.setNull ();
796
796
}
797
797
798
+ const bool changedCom2 = myAircraft.getCom2System () != com2;
799
+
798
800
m_simCom2 = com2;
799
801
Q_UNUSED (com2Test)
800
802
You can’t perform that action at this time.
0 commit comments