Copter: fix userhook aux switches

Functions userhook_auxSwitch1, userhook_auxSwitch2, and userhook_auxSwitch3 had the wrong argument type resulting in a compilation error.
This commit is contained in:
Miloš Petrašinović
2021-12-01 07:44:25 +09:00
committed by Randy Mackay
parent a04bbad45e
commit 063e24c723
2 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -44,17 +44,17 @@ void Copter::userhook_SuperSlowLoop()
#endif
#ifdef USERHOOK_AUXSWITCH
void Copter::userhook_auxSwitch1(uint8_t ch_flag)
void Copter::userhook_auxSwitch1(const RC_Channel::AuxSwitchPos ch_flag)
{
// put your aux switch #1 handler here (CHx_OPT = 47)
}
void Copter::userhook_auxSwitch2(uint8_t ch_flag)
void Copter::userhook_auxSwitch2(const RC_Channel::AuxSwitchPos ch_flag)
{
// put your aux switch #2 handler here (CHx_OPT = 48)
}
void Copter::userhook_auxSwitch3(uint8_t ch_flag)
void Copter::userhook_auxSwitch3(const RC_Channel::AuxSwitchPos ch_flag)
{
// put your aux switch #3 handler here (CHx_OPT = 49)
}