1
0
Fork 0
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:
timecop@gmail.com 2013-10-12 06:58:28 +00:00
parent 6bbc8fdb22
commit 37b73a057b
4 changed files with 5 additions and 2 deletions

View file

@ -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) {