From 1dc0063e6712d556af83b66d59a84f821c3bf0ca Mon Sep 17 00:00:00 2001 From: "tridge60@gmail.com" Date: Thu, 28 Jul 2011 12:11:25 +0000 Subject: [PATCH] HIL: fixed radio_status in setHIL() for APM_RC thanks to Michael Oborne for noticing this! git-svn-id: https://arducopter.googlecode.com/svn/trunk@2952 f9c3cf11-9bcb-44bc-f272-b75c42450872 --- libraries/APM_RC/APM_RC.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libraries/APM_RC/APM_RC.cpp b/libraries/APM_RC/APM_RC.cpp index 4ce7032795..27de25875d 100644 --- a/libraries/APM_RC/APM_RC.cpp +++ b/libraries/APM_RC/APM_RC.cpp @@ -206,12 +206,12 @@ bool APM_RC_Class::setHIL(int16_t v[NUM_CHANNELS]) sum++; } } - if (sum == 0) { - return 0; - } else { - return 1; - } radio_status = 1; + if (sum == 0) { + return 0; + } else { + return 1; + } } void APM_RC_Class::clearOverride(void)