mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-14 20:58:30 -04:00
read_control_switch
Removed Prev_WP reference. unneeded.
This commit is contained in:
parent
8ab1acfb92
commit
3646d69faf
@ -8,8 +8,6 @@ static void read_control_switch()
|
|||||||
|
|
||||||
if (oldSwitchPosition != switchPosition){
|
if (oldSwitchPosition != switchPosition){
|
||||||
if(switch_debouncer){
|
if(switch_debouncer){
|
||||||
// remember the prev location for GS
|
|
||||||
prev_WP = current_loc;
|
|
||||||
oldSwitchPosition = switchPosition;
|
oldSwitchPosition = switchPosition;
|
||||||
switch_debouncer = false;
|
switch_debouncer = false;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user