AP_OSD: change AC_FENCE to AP_FENCE_ENABLED

This commit is contained in:
Iampete1 2022-07-19 12:33:12 +01:00 committed by Andrew Tridgell
parent 380d174e32
commit 94004db13f
2 changed files with 3 additions and 3 deletions

View File

@ -276,7 +276,7 @@ private:
void draw_current2(uint8_t x, uint8_t y);
void draw_vtx_power(uint8_t x, uint8_t y);
void draw_hgt_abvterr(uint8_t x, uint8_t y);
#if AC_FENCE
#if AP_FENCE_ENABLED
void draw_fence(uint8_t x, uint8_t y);
#endif
void draw_rngf(uint8_t x, uint8_t y);

View File

@ -2124,7 +2124,7 @@ void AP_OSD_Screen::draw_hgt_abvterr(uint8_t x, uint8_t y)
}
#endif
#if AC_FENCE
#if AP_FENCE_ENABLED
void AP_OSD_Screen::draw_fence(uint8_t x, uint8_t y)
{
AC_Fence *fenceptr = AP::fence();
@ -2201,7 +2201,7 @@ void AP_OSD_Screen::draw(void)
DRAW_SETTING(heading);
DRAW_SETTING(wind);
DRAW_SETTING(home);
#if AC_FENCE
#if AP_FENCE_ENABLED
DRAW_SETTING(fence);
#endif
DRAW_SETTING(roll_angle);