Commander: Fix inverted circuit breaker logic

This commit is contained in:
Johan Jansen
2015-05-14 21:20:05 +02:00
parent 52222de021
commit 510b6124ec
2 changed files with 5 additions and 5 deletions

View File

@@ -689,5 +689,5 @@ int prearm_check(const struct vehicle_status_s *status, const int mavlink_fd)
checkAirspeed = true;
}
return !Commander::preflightCheck(mavlink_fd, true, true, true, true, checkAirspeed, true, status->circuit_breaker_engaged_gpsfailure_check, true);
return !Commander::preflightCheck(mavlink_fd, true, true, true, true, checkAirspeed, true, !status->circuit_breaker_engaged_gpsfailure_check, true);
}