Rev 171 | Rev 185 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 171 | Rev 183 | ||
---|---|---|---|
Line 217... | Line 217... | ||
217 | // FlightMode changed? |
217 | // FlightMode changed? |
218 | if(GPS_Parameter.FlightMode != FlightMode_Old) |
218 | if(GPS_Parameter.FlightMode != FlightMode_Old) |
219 | { |
219 | { |
220 | BeepTime = 200; // beep to indicate that mode has been switched |
220 | BeepTime = 200; // beep to indicate that mode has been switched |
221 | NCFlags &= ~NC_FLAG_TARGET_REACHED; |
221 | NCFlags &= ~NC_FLAG_TARGET_REACHED; |
222 | // if the mode has changed to free |
222 | // if the mode has changed to free (avoid clear of WP-List when StopNavigation is active) |
223 | if(GPS_Parameter.FlightMode == GPS_FLIGHT_MODE_FREE) WPList_Clear(); // clear WPList if mode has changed to Free |
223 | if((!StopNavigation) && (GPS_Parameter.FlightMode == GPS_FLIGHT_MODE_FREE)) WPList_Clear(); // clear WPList if mode has changed to Free |
224 | } |
224 | } |
225 | FlightMode_Old = GPS_Parameter.FlightMode; |
225 | FlightMode_Old = GPS_Parameter.FlightMode; |
226 | } |
226 | } |
Line 227... | Line 227... | ||
227 | 227 |