arduino / arduino/Arduino

Enhance HID_SendReport method signature

Open
#2,014 3 comments 0 reactions 1 assignee Claimed by @cmaglie View on GitHub
feature request Library: HID
Dominant language
Java
Stars
14.6k
Forks
7k
PR merge metrics
No merged PRs in 30d

Description

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 ;-)).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.