Skip to content

Commit

Permalink
Merge pull request #285 from farmerbriantee/FinalUpdates
Browse files Browse the repository at this point in the history
Fix steerswitch no run
  • Loading branch information
farmerbriantee authored Dec 26, 2022
2 parents 91816f0 + 8eb5661 commit 46c8470
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions SourceCode/GPS/Classes/CModuleComm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 46c8470

Please sign in to comment.