Skip to content

Commit

Permalink
AP_OSD: correct compilation when RC_Channels library not available
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker committed Dec 11, 2023
1 parent d7c638d commit ccc6e1b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libraries/AP_OSD/AP_OSD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,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;
Expand Down Expand Up @@ -564,6 +565,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
Expand Down

0 comments on commit ccc6e1b

Please sign in to comment.