Skip to content

Commit

Permalink
clarify BootKeyboard SendReport
Browse files Browse the repository at this point in the history
Signed-off-by: Taylor Yu <[email protected]>
  • Loading branch information
tlyu authored and obra committed Mar 15, 2024
1 parent 0d7e075 commit b2d618f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion plugins/KeyboardioHID/src/BootKeyboard/BootKeyboard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ void BootKeyboard_::setReportDescriptor(uint8_t bootkb_only) {
}
}

int BootKeyboard_::SendReport(const void *data, int len) {
int BootKeyboard_::SendHIDReport(const void *data, int len) {
int returnCode = HIDD::SendReport(0, data, len);
HIDReportObserver::observeReport(HID_REPORTID_KEYBOARD, data, len, returnCode);
}
Expand Down
2 changes: 1 addition & 1 deletion plugins/KeyboardioHID/src/BootKeyboard/BootKeyboard.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class BootKeyboard_ : public HIDD, public BootKeyboardAPI {
}

protected:
int SendReport(const void *data, int len) override;
int SendHIDReport(const void *data, int len) override;
void setReportDescriptor(uint8_t bootkb_only) override;
};
extern BootKeyboard_ &BootKeyboard();
2 changes: 1 addition & 1 deletion src/kaleidoscope/driver/hid/apis/BootKeyboardAPI.h
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ class BootKeyboardAPI {
virtual void onUSBReset() = 0;

protected:
virtual int SendReport(const void *data, int len) = 0;
virtual int SendHIDReport(const void *data, int len) = 0;
virtual void setReportDescriptor(uint8_t bootkb_only) = 0;
virtual uint8_t getProtocol() = 0;

Expand Down
2 changes: 1 addition & 1 deletion src/kaleidoscope/driver/hid/apis/BootKeyboardAPI.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ int BootKeyboardAPI::sendReportUnchecked() {
} else {
reportlen = sizeof(out_report);
}
int returnCode = SendReport(&out_report, reportlen);
int returnCode = SendHIDReport(&out_report, reportlen);
return returnCode;
}

Expand Down

0 comments on commit b2d618f

Please sign in to comment.