diff --git a/libraries/AP_IRLock/AP_IRLock_I2C.h b/libraries/AP_IRLock/AP_IRLock_I2C.h index 1262eaefc1..862274beb3 100644 --- a/libraries/AP_IRLock/AP_IRLock_I2C.h +++ b/libraries/AP_IRLock/AP_IRLock_I2C.h @@ -13,7 +13,7 @@ public: void init(int8_t bus) override; // retrieve latest sensor data - returns true if new data is available - bool update(); + bool update() override; private: AP_HAL::OwnPtr dev; diff --git a/libraries/AP_IRLock/AP_IRLock_SITL.h b/libraries/AP_IRLock/AP_IRLock_SITL.h index 9f59c99a79..caac3d64bd 100644 --- a/libraries/AP_IRLock/AP_IRLock_SITL.h +++ b/libraries/AP_IRLock/AP_IRLock_SITL.h @@ -16,10 +16,10 @@ public: AP_IRLock_SITL(); // init - initialize sensor library - virtual void init(int8_t bus); + void init(int8_t bus) override; // retrieve latest sensor data - returns true if new data is available - virtual bool update(); + bool update() override; private: