AP_Vehicle: make AP_RANGEFINDER_ENABLED remove more code

This commit is contained in:
Peter Barker 2023-11-08 09:23:41 +11:00 committed by Andrew Tridgell
parent f9a94fd7dd
commit fe6b120a73
1 changed files with 2 additions and 0 deletions

View File

@ -333,7 +333,9 @@ protected:
#if HAL_BUTTON_ENABLED #if HAL_BUTTON_ENABLED
AP_Button button; AP_Button button;
#endif #endif
#if AP_RANGEFINDER_ENABLED
RangeFinder rangefinder; RangeFinder rangefinder;
#endif
#if HAL_LOGGING_ENABLED #if HAL_LOGGING_ENABLED
AP_Logger logger; AP_Logger logger;