Skip to content

Commit

Permalink
HID_: Make methods overridden from base-class explicit
Browse files Browse the repository at this point in the history
Fixes abratchik#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.
  • Loading branch information
forderud committed Sep 9, 2024
1 parent 01bc7ae commit 2ca67c6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/HID/HID.h
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 2ca67c6

Please sign in to comment.