ArduSub: move logging of LogEvent::SET_HOME up

This commit is contained in:
Peter Barker authored and Andrew Tridgell committed 2022-02-08 11:04:26 +11:00
1 parent 75db4d2d98
commit abbbfc0e85
1 file changed
-3
-3
View File
@@ -70,9 +70,6 @@ bool Sub::set_home(const Location& loc, bool lock)
// init inav and compass declination
if (!home_was_set) {
// record home is set
AP::logger().Write_Event(LogEvent::SET_HOME);
// log new home position which mission library will pull from ahrs
if (should_log(MASK_LOG_CMD)) {
AP_Mission::Mission_Command temp_cmd;