From 2ca67c61f7da9a7e37f25f7e92ae22c87b9e7864 Mon Sep 17 00:00:00 2001 From: Fredrik Orderud Date: Mon, 9 Sep 2024 14:02:50 +0200 Subject: [PATCH] HID_: Make methods overridden from base-class explicit Fixes #20. Done to make it clear that these virtual methods are defined in the PluggableUSBModule base-class and might be called from external code not seen in this repo. --- src/HID/HID.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/HID/HID.h b/src/HID/HID.h index ea1598c..bb55aa2 100644 --- a/src/HID/HID.h +++ b/src/HID/HID.h @@ -133,10 +133,10 @@ class HID_ : public PluggableUSBModule protected: // Implementation of the PluggableUSBModule - int getInterface(uint8_t* interfaceCount); - int getDescriptor(USBSetup& setup); - bool setup(USBSetup& setup); - uint8_t getShortName(char* name); + int getInterface(uint8_t* interfaceCount) override; + int getDescriptor(USBSetup& setup) override; + bool setup(USBSetup& setup) override; + uint8_t getShortName(char* name) override; private: uint8_t epType[2];