mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 13:25:30 +03:00
core.numRCChannels now set by RC drivers to show max inputs available.
git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@433 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
This commit is contained in:
parent
6bbc8fdb22
commit
37b73a057b
4 changed files with 5 additions and 2 deletions
|
@ -80,8 +80,9 @@ int main(void)
|
|||
|
||||
pwmInit(&pwm_params);
|
||||
|
||||
// configure PWM/CPPM read function. spektrum or sbus below will override that
|
||||
// configure PWM/CPPM read function and max number of channels. spektrum or sbus below will override both of these, if enabled
|
||||
rcReadRawFunc = pwmReadRawRC;
|
||||
core.numRCChannels = MAX_INPUTS;
|
||||
|
||||
if (feature(FEATURE_SERIALRX)) {
|
||||
switch (mcfg.serialrx_type) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue