File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
hardware/arduino/sam/libraries/HID Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -81,12 +81,12 @@ void HID_::AppendDescriptor(HIDSubDescriptor *node)
8181 descriptorSize += node->length ;
8282}
8383
84- void HID_::SendReport (uint8_t id, const void * data, int len)
84+ int HID_::SendReport (uint8_t id, const void * data, int len)
8585{
8686 uint8_t p[64 ];
8787 p[0 ] = id;
8888 memcpy (&p[1 ], data, len);
89- USBD_Send (pluggedEndpoint, p, len+1 );
89+ return USBD_Send (pluggedEndpoint, p, len+1 );
9090}
9191
9292bool HID_::setup (USBSetup& setup)
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ class HID_ : public PluggableUSBModule
8888public:
8989 HID_ (void );
9090 int begin (void );
91- void SendReport (uint8_t id, const void * data, int len);
91+ int SendReport (uint8_t id, const void * data, int len);
9292 void AppendDescriptor (HIDSubDescriptor* node);
9393
9494protected:
You can’t perform that action at this time.
0 commit comments