Skip to content

Commit

Permalink
fixed reset home by button when restore is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
raul-ortega committed May 1, 2021
1 parent 8e2d734 commit 6f3439b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/tracker/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,7 @@ void setHomeByTelemetry(positionVector_t *tracker, positionVector_t *target) {
}

bool shouldRestoreHome(void){
return(!homeSet && masterConfig.restore_last_home == true && masterConfig.home_lat != 0 && masterConfig.home_lon != 0);
return(!homeSet && !homeSet_BY_LAST && !homeReset && masterConfig.restore_last_home == true && masterConfig.home_lat != 0 && masterConfig.home_lon != 0);
}

void setTelemetryHome(int32_t lat, int32_t lon, int16_t alt, bool save){
Expand Down

0 comments on commit 6f3439b

Please sign in to comment.