From a5b28cf3e37804d23203de51e23369c0b30deb6a Mon Sep 17 00:00:00 2001 From: Andy Piper Date: Mon, 19 Feb 2024 18:42:26 +0000 Subject: [PATCH] AP_RCProtocol: squash compile warning --- libraries/AP_RCProtocol/AP_RCProtocol_Backend.cpp | 2 +- libraries/AP_RCProtocol/AP_RCProtocol_GHST.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/libraries/AP_RCProtocol/AP_RCProtocol_Backend.cpp b/libraries/AP_RCProtocol/AP_RCProtocol_Backend.cpp index 7c61f5355d..75e84ade9a 100644 --- a/libraries/AP_RCProtocol/AP_RCProtocol_Backend.cpp +++ b/libraries/AP_RCProtocol/AP_RCProtocol_Backend.cpp @@ -181,7 +181,7 @@ void AP_RCProtocol_Backend::log_data(AP_RCProtocol::rcprotocol_t prot, uint32_t #if HAL_LOGGING_ENABLED && AP_RC_CHANNEL_ENABLED #if (CONFIG_HAL_BOARD == HAL_BOARD_SITL || CONFIG_HAL_BOARD == HAL_BOARD_LINUX) - if (&rc() == nullptr) { // allow running without RC_Channels if we are doing the examples + if (RC_Channels::get_singleton() == nullptr) { // allow running without RC_Channels if we are doing the examples return; } #endif diff --git a/libraries/AP_RCProtocol/AP_RCProtocol_GHST.h b/libraries/AP_RCProtocol/AP_RCProtocol_GHST.h index 248fb3f179..8b439c97c3 100644 --- a/libraries/AP_RCProtocol/AP_RCProtocol_GHST.h +++ b/libraries/AP_RCProtocol/AP_RCProtocol_GHST.h @@ -180,7 +180,6 @@ private: uint32_t _last_frame_time_us; uint32_t _last_tx_frame_time_us; - uint32_t _last_uart_start_time_ms; uint32_t _last_rx_frame_time_us; uint32_t _start_frame_time_us; bool telem_available;