From 2ef09752c1ffa714d8f08721c514358b041c8465 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Sun, 30 Jan 2022 16:48:07 +1100 Subject: [PATCH] Blimp: move logging of LogEvent::SET_HOME up --- Blimp/commands.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/Blimp/commands.cpp b/Blimp/commands.cpp index 65a3ba886a..28942deb39 100644 --- a/Blimp/commands.cpp +++ b/Blimp/commands.cpp @@ -63,19 +63,11 @@ bool Blimp::set_home(const Location& loc, bool lock) return false; } - const bool home_was_set = ahrs.home_is_set(); - // set ahrs home (used for RTL) if (!ahrs.set_home(loc)) { return false; } - // init inav and compass declination - if (!home_was_set) { - // record home is set - AP::logger().Write_Event(LogEvent::SET_HOME); - } - // lock home position if (lock) { ahrs.lock_home();