Skip to content

Commit

Permalink
AP_Tuning: adapt to new RC_Channel API
Browse files Browse the repository at this point in the history
  • Loading branch information
tridge committed Jan 12, 2017
1 parent f73f3be commit ede66aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/AP_Tuning/AP_Tuning.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ void AP_Tuning::check_selector_switch(void)
// no selector switch enabled
return;
}
RC_Channel *selchan = RC_Channel::rc_channel(selector-1);
RC_Channel *selchan = RC_Channels::rc_channel(selector-1);
if (selchan == nullptr) {
return;
}
Expand Down Expand Up @@ -172,7 +172,7 @@ void AP_Tuning::check_input(uint8_t flightmode)
return;
}

RC_Channel *chan = RC_Channel::rc_channel(channel-1);
RC_Channel *chan = RC_Channels::rc_channel(channel-1);
if (chan == nullptr) {
return;
}
Expand Down

0 comments on commit ede66aa

Please sign in to comment.