diff --git a/libraries/AP_HAL_Empty/I2CDevice.h b/libraries/AP_HAL_Empty/I2CDevice.h index 0910afb33b..bec7fb039d 100644 --- a/libraries/AP_HAL_Empty/I2CDevice.h +++ b/libraries/AP_HAL_Empty/I2CDevice.h @@ -65,11 +65,18 @@ public: AP_HAL::Semaphore *get_semaphore() { return nullptr; } /* See AP_HAL::Device::register_periodic_callback() */ - AP_HAL::Device::PeriodicHandle *register_periodic_callback( - uint32_t period_usec, AP_HAL::MemberProc) override + AP_HAL::Device::PeriodicHandle register_periodic_callback( + uint32_t period_usec, AP_HAL::Device::PeriodicCb) override { return nullptr; - }; + } + + /* See Device::adjust_periodic_callback() */ + virtual bool adjust_periodic_callback( + AP_HAL::Device::PeriodicHandle h, uint32_t period_usec) override + { + return true; + } /* See AP_HAL::Device::get_fd() */ int get_fd() { return -1; } diff --git a/libraries/AP_HAL_Empty/SPIDevice.h b/libraries/AP_HAL_Empty/SPIDevice.h index 9fa64fc24f..3fc580d006 100644 --- a/libraries/AP_HAL_Empty/SPIDevice.h +++ b/libraries/AP_HAL_Empty/SPIDevice.h @@ -63,11 +63,11 @@ public: } /* See AP_HAL::Device::register_periodic_callback() */ - AP_HAL::Device::PeriodicHandle *register_periodic_callback( - uint32_t period_usec, AP_HAL::MemberProc) override + AP_HAL::Device::PeriodicHandle register_periodic_callback( + uint32_t period_usec, AP_HAL::Device::PeriodicCb) override { return nullptr; - }; + } /* See AP_HAL::Device::get_fd() */ int get_fd() override { return -1; }