This code
If Not Prefs.AutoGuiding.Enabled Or Prefs.AutoGuiding.SensorType = 0 Then ' gstExternal
tooFar = (slewDist > Prefs.PointingUpdates.MaximumSlew)
If Not tooFar Then Console.PrintLine " (skipping pointing update, last target close enough)"
Else
tooFar = True
End If
Fails to call AutoFlipIf() if the optimization is triggered.