From 1b3e2e3c8b6dc36e3b14d0e18041bcc1b8407a5b Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 15 Aug 2019 14:02:02 +1000 Subject: [PATCH] AP_HAL_Linux: add missing override keywords --- libraries/AP_HAL_Linux/GPIO_BBB.h | 14 +++++++------- libraries/AP_HAL_Linux/GPIO_RPI.h | 16 ++++++++-------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/libraries/AP_HAL_Linux/GPIO_BBB.h b/libraries/AP_HAL_Linux/GPIO_BBB.h index 6244e5222a..ceca356591 100644 --- a/libraries/AP_HAL_Linux/GPIO_BBB.h +++ b/libraries/AP_HAL_Linux/GPIO_BBB.h @@ -120,17 +120,17 @@ private: public: GPIO_BBB(); - void init(); - void pinMode(uint8_t pin, uint8_t output); - uint8_t read(uint8_t pin); - void write(uint8_t pin, uint8_t value); - void toggle(uint8_t pin); + void init() override; + void pinMode(uint8_t pin, uint8_t output) override; + uint8_t read(uint8_t pin) override; + void write(uint8_t pin, uint8_t value) override; + void toggle(uint8_t pin) override; /* Alternative interface: */ - AP_HAL::DigitalSource* channel(uint16_t n); + AP_HAL::DigitalSource* channel(uint16_t n) override; /* return true if USB cable is connected */ - bool usb_connected(void); + bool usb_connected(void) override; }; } diff --git a/libraries/AP_HAL_Linux/GPIO_RPI.h b/libraries/AP_HAL_Linux/GPIO_RPI.h index 7521bf9ef2..07b055c0a8 100644 --- a/libraries/AP_HAL_Linux/GPIO_RPI.h +++ b/libraries/AP_HAL_Linux/GPIO_RPI.h @@ -46,18 +46,18 @@ namespace Linux { class GPIO_RPI : public AP_HAL::GPIO { public: GPIO_RPI(); - void init(); - void pinMode(uint8_t pin, uint8_t output); - void pinMode(uint8_t pin, uint8_t output, uint8_t alt); - uint8_t read(uint8_t pin); - void write(uint8_t pin, uint8_t value); - void toggle(uint8_t pin); + void init() override; + void pinMode(uint8_t pin, uint8_t output) override; + void pinMode(uint8_t pin, uint8_t output, uint8_t alt) override; + uint8_t read(uint8_t pin) override; + void write(uint8_t pin, uint8_t value) override; + void toggle(uint8_t pin) override; /* Alternative interface: */ - AP_HAL::DigitalSource* channel(uint16_t n); + AP_HAL::DigitalSource* channel(uint16_t n) override; /* return true if USB cable is connected */ - bool usb_connected(void); + bool usb_connected(void) override; private: volatile uint32_t *_gpio;