AP_OSD: correct compilation with AP_RRSI_ENABLED false

Co-authored-by: David Buzz <davidbuzz@gmail.com>
This commit is contained in:
Peter Barker 2024-07-23 20:51:07 +10:00 committed by Peter Barker
parent 1afa801b19
commit cc190f537f
1 changed files with 2 additions and 0 deletions

View File

@ -2584,8 +2584,10 @@ void AP_OSD_Screen::draw(void)
DRAW_SETTING(avgcellvolt); DRAW_SETTING(avgcellvolt);
DRAW_SETTING(avgcellrestvolt); DRAW_SETTING(avgcellrestvolt);
DRAW_SETTING(restvolt); DRAW_SETTING(restvolt);
#if AP_RSSI_ENABLED
DRAW_SETTING(rssi); DRAW_SETTING(rssi);
DRAW_SETTING(link_quality); DRAW_SETTING(link_quality);
#endif
DRAW_SETTING(current); DRAW_SETTING(current);
DRAW_SETTING(batused); DRAW_SETTING(batused);
DRAW_SETTING(bat2used); DRAW_SETTING(bat2used);