From 8eb5661e4e552bfc11ae176ece368245c5c37ddf Mon Sep 17 00:00:00 2001 From: Brian Tischler Date: Mon, 26 Dec 2022 08:00:25 -0700 Subject: [PATCH] Fix steerswitch no run --- SourceCode/GPS/Classes/CModuleComm.cs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/SourceCode/GPS/Classes/CModuleComm.cs b/SourceCode/GPS/Classes/CModuleComm.cs index c68194167..a69a7e0dd 100644 --- a/SourceCode/GPS/Classes/CModuleComm.cs +++ b/SourceCode/GPS/Classes/CModuleComm.cs @@ -47,17 +47,17 @@ public CModuleComm(FormGPS _f) //Called from "OpenGL.Designer.cs" when requied public void CheckWorkAndSteerSwitch() { - if (isRemoteWorkSystemOn) + //AutoSteerAuto button enable - Ray Bear inspired code - Thx Ray! + if (mf.ahrs.isAutoSteerAuto && steerSwitchHigh != oldSteerSwitchRemote) { - //AutoSteerAuto button enable - Ray Bear inspired code - Thx Ray! - if (mf.ahrs.isAutoSteerAuto && steerSwitchHigh != oldSteerSwitchRemote) - { - oldSteerSwitchRemote = steerSwitchHigh; - //steerSwith is active low - if (steerSwitchHigh == mf.isAutoSteerBtnOn) - mf.btnAutoSteer.PerformClick(); - } + oldSteerSwitchRemote = steerSwitchHigh; + //steerSwith is active low + if (steerSwitchHigh == mf.isAutoSteerBtnOn) + mf.btnAutoSteer.PerformClick(); + } + if (isRemoteWorkSystemOn) + { if (isWorkSwitchEnabled && (oldWorkSwitchHigh != workSwitchHigh)) { oldWorkSwitchHigh = workSwitchHigh;