From f7ba79e4938b985a85dbcb8254d26c5ecf92f547 Mon Sep 17 00:00:00 2001
From: Peter Barker <pbarker@barker.dropbear.id.au>
Date: Mon, 21 Oct 2019 18:07:04 +1100
Subject: [PATCH] Copter: canonicalize on STANDBY rather than STANDY_BY

---
 ArduCopter/RC_Channel.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/ArduCopter/RC_Channel.cpp b/ArduCopter/RC_Channel.cpp
index d0a2a17f61..72c02ae1e6 100644
--- a/ArduCopter/RC_Channel.cpp
+++ b/ArduCopter/RC_Channel.cpp
@@ -77,7 +77,7 @@ void RC_Channel_Copter::init_aux_function(const aux_func_t ch_option, const aux_
     case AUX_FUNC::PRECISION_LOITER:
     case AUX_FUNC::INVERTED:
     case AUX_FUNC::WINCH_ENABLE:
-    case AUX_FUNC::STAND_BY:
+    case AUX_FUNC::STANDBY:
     case AUX_FUNC::SURFACE_TRACKING:
         do_aux_function(ch_option, ch_flag);
         break;
@@ -543,16 +543,16 @@ void RC_Channel_Copter::do_aux_function(const aux_func_t ch_option, const aux_sw
 #endif
             break;
 
-        case AUX_FUNC::STAND_BY: {
+        case AUX_FUNC::STANDBY: {
             switch (ch_flag) {
                 case HIGH:
                     copter.standby_active = true;
-                    copter.Log_Write_Event(DATA_STAND_BY_ENABLE);
+                    copter.Log_Write_Event(DATA_STANDBY_ENABLE);
                     gcs().send_text(MAV_SEVERITY_INFO, "Stand By Enabled");
                     break;
                 default:
                     copter.standby_active = false;
-                    copter.Log_Write_Event(DATA_STAND_BY_DISABLE);
+                    copter.Log_Write_Event(DATA_STANDBY_DISABLE);
                     gcs().send_text(MAV_SEVERITY_INFO, "Stand By Disabled");
                     break;
                 }