diff --git a/libraries/AP_DAC/AP_DAC_DACx0501.cpp b/libraries/AP_DAC/AP_DAC_DACx0501.cpp index 810dda845f1601..1cb2cf6d28ff34 100644 --- a/libraries/AP_DAC/AP_DAC_DACx0501.cpp +++ b/libraries/AP_DAC/AP_DAC_DACx0501.cpp @@ -3,6 +3,7 @@ #if AP_DAC_DACx0501_ENABLED #include +#include extern const AP_HAL::HAL &hal; @@ -74,7 +75,7 @@ void AP_DAC_DACx0501::init() } _dev->set_retries(3); - _dev->register_periodic_callback(20 * AP_USEC_PER_MSEC, FUNCTOR_BIND_MEMBER(&AP_DAC_DACx0501::thread, void)); + _dev->register_periodic_callback(20 * 1000, FUNCTOR_BIND_MEMBER(&AP_DAC_DACx0501::thread, void)); } void AP_DAC_DACx0501::thread()