diff --git a/libraries/AP_RangeFinder/examples/MaxsonarXL_test/MaxsonarXL_test.pde b/libraries/AP_RangeFinder/examples/MaxsonarXL_test/MaxsonarXL_test.pde index 6b49596cad..5eddee6454 100644 --- a/libraries/AP_RangeFinder/examples/MaxsonarXL_test/MaxsonarXL_test.pde +++ b/libraries/AP_RangeFinder/examples/MaxsonarXL_test/MaxsonarXL_test.pde @@ -11,6 +11,7 @@ #include #include #include +#include #include #include #include @@ -35,11 +36,7 @@ //////////////////////////////////////////////////////////////////////////////// -#if CONFIG_HAL_BOARD == HAL_BOARD_APM2 -const AP_HAL::HAL& hal = AP_HAL_AVR_APM2; -#else -const AP_HAL::HAL& hal = AP_HAL_AVR_APM1; -#endif +const AP_HAL::HAL& hal = AP_HAL_BOARD_DRIVER; // declare global instances ModeFilterInt16_Size5 mode_filter(2);