File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -84,12 +84,12 @@ void HID_::AppendDescriptor(HIDSubDescriptor *node)
8484 descriptorSize += node->length ;
8585}
8686
87- void HID_::SendReport (uint8_t id, const void * data, int len)
87+ int HID_::SendReport (uint8_t id, const void * data, int len)
8888{
8989 uint8_t p[64 ];
9090 p[0 ] = id;
9191 memcpy (&p[1 ], data, len);
92- USBDevice.send (pluggedEndpoint, p, len+1 );
92+ return USBDevice.send (pluggedEndpoint, p, len+1 );
9393}
9494
9595bool 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