Skip to content

Commit

Permalink
AP_IRLock: added override keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
tridge committed Apr 13, 2017
1 parent 5d4400f commit 7992a21
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libraries/AP_IRLock/AP_IRLock_I2C.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class AP_IRLock_I2C : public IRLock
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<AP_HAL::Device> dev;
Expand Down
4 changes: 2 additions & 2 deletions libraries/AP_IRLock/AP_IRLock_SITL.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ class AP_IRLock_SITL : public IRLock
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:

Expand Down

0 comments on commit 7992a21

Please sign in to comment.