From b8b1a7270c1fe884de332900b6757a3d8f6f5cd6 Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Sat, 17 Apr 2021 10:40:00 +0900 Subject: [PATCH] Rover: DPTH messages logged even with no position --- Rover/Log.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Rover/Log.cpp b/Rover/Log.cpp index 1a2fce9b30..2c8b068e6e 100644 --- a/Rover/Log.cpp +++ b/Rover/Log.cpp @@ -46,9 +46,7 @@ void Rover::Log_Write_Depth() // get position Location loc; - if (!ahrs.get_position(loc)) { - return; - } + IGNORE_RETURN(ahrs.get_position(loc)); // check if new sensor reading has arrived uint32_t reading_ms = rangefinder.last_reading_ms(ROTATION_PITCH_270);