From aa55578008963fe58a9f975620aa4f4a9c6eb198 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Jos=C3=A9=20Pereira?= Date: Mon, 1 Feb 2021 13:26:28 -0300 Subject: [PATCH] AP_Frsky_Telem: 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_Frsky_Telem/AP_Frsky_SPort_Passthrough.cpp | 2 +- libraries/AP_Frsky_Telem/AP_Frsky_SPort_Passthrough.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_Frsky_Telem/AP_Frsky_SPort_Passthrough.cpp b/libraries/AP_Frsky_Telem/AP_Frsky_SPort_Passthrough.cpp index ab8b6680cc..ee8f48e54f 100644 --- a/libraries/AP_Frsky_Telem/AP_Frsky_SPort_Passthrough.cpp +++ b/libraries/AP_Frsky_Telem/AP_Frsky_SPort_Passthrough.cpp @@ -475,7 +475,7 @@ uint32_t AP_Frsky_SPort_Passthrough::calc_batt(uint8_t instance) * true if we need to respond to the last polling byte * for FrSky SPort Passthrough (OpenTX) protocol (X-receivers) */ -bool AP_Frsky_SPort_Passthrough::is_passthrough_byte(const uint8_t byte) +bool AP_Frsky_SPort_Passthrough::is_passthrough_byte(const uint8_t byte) const { #if HAL_WITH_FRSKY_TELEM_BIDIRECTIONAL if( byte == _SPort_bidir.downlink1_sensor_id || byte == _SPort_bidir.downlink2_sensor_id ) { diff --git a/libraries/AP_Frsky_Telem/AP_Frsky_SPort_Passthrough.h b/libraries/AP_Frsky_Telem/AP_Frsky_SPort_Passthrough.h index 22bed7f815..62f20ba256 100644 --- a/libraries/AP_Frsky_Telem/AP_Frsky_SPort_Passthrough.h +++ b/libraries/AP_Frsky_Telem/AP_Frsky_SPort_Passthrough.h @@ -146,7 +146,7 @@ private: void send_sport_frame(uint8_t frame, uint16_t appid, uint32_t data); // true if we need to respond to the last polling byte - bool is_passthrough_byte(const uint8_t byte); + bool is_passthrough_byte(const uint8_t byte) const; uint8_t _paramID;