From f59d2fdbf446055de05908f66ace13bbdad4e855 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 4 Jun 2020 12:06:30 +1000 Subject: [PATCH] ArduPlane: add and use accessor for last-RADIO_STATUS.remrssi-ms --- ArduPlane/system.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ArduPlane/system.cpp b/ArduPlane/system.cpp index b29d5a9bfe..2a2c0fb660 100644 --- a/ArduPlane/system.cpp +++ b/ArduPlane/system.cpp @@ -324,8 +324,8 @@ void Plane::check_long_failsafe() failsafe_long_on_event(FAILSAFE_GCS, ModeReason::GCS_FAILSAFE); } else if (g.gcs_heartbeat_fs_enabled == GCS_FAILSAFE_HB_RSSI && gcs().chan(0) != nullptr && - gcs().chan(0)->last_radio_status_remrssi_ms != 0 && - (tnow - gcs().chan(0)->last_radio_status_remrssi_ms) > g.fs_timeout_long*1000) { + gcs().chan(0)->last_radio_status_remrssi_ms() != 0 && + (tnow - gcs().chan(0)->last_radio_status_remrssi_ms()) > g.fs_timeout_long*1000) { failsafe_long_on_event(FAILSAFE_GCS, ModeReason::GCS_FAILSAFE); } } else {