From 7b6f1225bae85d2b4ad3d00e371b1a603af328ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Jos=C3=A9=20Pereira?= Date: Mon, 1 Feb 2021 13:26:35 -0300 Subject: [PATCH] AP_WheelEncoder: Add missing const in member functions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Patrick José Pereira --- libraries/AP_WheelEncoder/AP_WheelEncoder.cpp | 2 +- libraries/AP_WheelEncoder/AP_WheelEncoder.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_WheelEncoder/AP_WheelEncoder.cpp b/libraries/AP_WheelEncoder/AP_WheelEncoder.cpp index 1d439126e9..4a599677c2 100644 --- a/libraries/AP_WheelEncoder/AP_WheelEncoder.cpp +++ b/libraries/AP_WheelEncoder/AP_WheelEncoder.cpp @@ -202,7 +202,7 @@ void AP_WheelEncoder::update(void) } // log wheel encoder information -void AP_WheelEncoder::Log_Write() +void AP_WheelEncoder::Log_Write() const { // return immediately if no wheel encoders are enabled if (!enabled(0) && !enabled(1)) { diff --git a/libraries/AP_WheelEncoder/AP_WheelEncoder.h b/libraries/AP_WheelEncoder/AP_WheelEncoder.h index 2ec4ac2c1a..ad8a97c5f9 100644 --- a/libraries/AP_WheelEncoder/AP_WheelEncoder.h +++ b/libraries/AP_WheelEncoder/AP_WheelEncoder.h @@ -70,7 +70,7 @@ public: void update(void); // log data to logger - void Log_Write(); + void Log_Write() const; // return the number of wheel encoder sensor instances uint8_t num_sensors(void) const { return num_instances; }