mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_OSD: correct compilation when RC_Channels library not available
This commit is contained in:
parent
2768c63971
commit
1aa6ad5bc3
@ -511,6 +511,7 @@ void AP_OSD::update_current_screen()
|
||||
return;
|
||||
}
|
||||
|
||||
#if AP_RC_CHANNEL_ENABLED
|
||||
RC_Channel *channel = RC_Channels::rc_channel(rc_channel-1);
|
||||
if (channel == nullptr) {
|
||||
return;
|
||||
@ -566,6 +567,7 @@ void AP_OSD::update_current_screen()
|
||||
break;
|
||||
}
|
||||
switch_debouncer = false;
|
||||
#endif // AP_RC_CHANNEL_ENABLED
|
||||
}
|
||||
|
||||
//select next avaliable screen, do nothing if all screens disabled
|
||||
|
Loading…
Reference in New Issue
Block a user