From 84afe993d777182fe1df87e001a3de8cc1e6e308 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 27 Oct 2023 18:28:08 +1100 Subject: [PATCH] Rover: tidy sending of WATER_DEPTH messages --- Rover/Log.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Rover/Log.cpp b/Rover/Log.cpp index c8c18d8ee9..36403f66d2 100644 --- a/Rover/Log.cpp +++ b/Rover/Log.cpp @@ -78,8 +78,10 @@ void Rover::Log_Write_Depth() (double)(s->distance()), temp_C); } +#if AP_RANGEFINDER_ENABLED // send water depth and temp to ground station gcs().send_message(MSG_WATER_DEPTH); +#endif } // guided mode logging