From 482c8d7f0b60e29613c7ee7a32f5798e0128c7c4 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 14 Feb 2024 13:36:11 +1100 Subject: [PATCH] Blimp: use AUX_FUNC instead of typedef aux_func_t --- Blimp/RC_Channel.cpp | 4 ++-- Blimp/RC_Channel.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Blimp/RC_Channel.cpp b/Blimp/RC_Channel.cpp index ba94d82a17..8742d3e347 100644 --- a/Blimp/RC_Channel.cpp +++ b/Blimp/RC_Channel.cpp @@ -58,7 +58,7 @@ RC_Channel * RC_Channels_Blimp::get_arming_channel(void) const } // init_aux_switch_function - initialize aux functions -void RC_Channel_Blimp::init_aux_function(const aux_func_t ch_option, const AuxSwitchPos ch_flag) +void RC_Channel_Blimp::init_aux_function(const AUX_FUNC ch_option, const AuxSwitchPos ch_flag) { // init channel options switch (ch_option) { @@ -99,7 +99,7 @@ void RC_Channel_Blimp::do_aux_function_change_mode(const Mode::Number mode, } // do_aux_function - implement the function invoked by auxiliary switches -bool RC_Channel_Blimp::do_aux_function(const aux_func_t ch_option, const AuxSwitchPos ch_flag) +bool RC_Channel_Blimp::do_aux_function(const AUX_FUNC ch_option, const AuxSwitchPos ch_flag) { switch (ch_option) { diff --git a/Blimp/RC_Channel.h b/Blimp/RC_Channel.h index ec37259794..4a6e5e0156 100644 --- a/Blimp/RC_Channel.h +++ b/Blimp/RC_Channel.h @@ -11,8 +11,8 @@ public: protected: - void init_aux_function(aux_func_t ch_option, AuxSwitchPos) override; - bool do_aux_function(aux_func_t ch_option, AuxSwitchPos) override; + void init_aux_function(AUX_FUNC ch_option, AuxSwitchPos) override; + bool do_aux_function(AUX_FUNC ch_option, AuxSwitchPos) override; private: