Skip to content

Enhance HID_SendReport method signature #2014

Open
@richardatsap

Description

@richardatsap

HID_SendReport (USBAPI.h and HID.cpp) does not return any value, although the underlying implementation uses USBSend which returns the number of bytes or -1 if failed. I suggest changing the signature of HID_SendReport to return an int value to enable consumers to detect error conditions.

I'd be willing to do the change in a pull request. Unfortunately I can't discuss that on the mailing list as I do not have a Google account (and I am not willing to get one ;-)).

Metadata

Metadata

Assignees

Labels

Library: HIDThe HID Arduino libraryfeature requestA request to make an enhancement (not a bug fix)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions