Skip to content

Commit d5e8c9d

Browse files
authored
Make USBHIDKeyboard::sendReport() public (#6322)
Exposing this method makes it easier to integrate non-espressif USB-based projects (e.g. led/modifiers examples from USB Host Shield 2.0)
1 parent 65cfab7 commit d5e8c9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: libraries/USB/src/USBHIDKeyboard.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ class USBHIDKeyboard: public USBHIDDevice, public Print
114114
private:
115115
USBHID hid;
116116
KeyReport _keyReport;
117-
void sendReport(KeyReport* keys);
118117
public:
119118
USBHIDKeyboard(void);
120119
void begin(void);
@@ -124,6 +123,7 @@ class USBHIDKeyboard: public USBHIDDevice, public Print
124123
size_t press(uint8_t k);
125124
size_t release(uint8_t k);
126125
void releaseAll(void);
126+
void sendReport(KeyReport* keys);
127127

128128
//raw functions work with TinyUSB's HID_KEY_* macros
129129
size_t pressRaw(uint8_t k);

0 commit comments

Comments
 (0)