File tree 2 files changed +3
-3
lines changed
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)
81
81
descriptorSize += node->length ;
82
82
}
83
83
84
- void HID_::SendReport (uint8_t id, const void * data, int len)
84
+ int HID_::SendReport (uint8_t id, const void * data, int len)
85
85
{
86
86
uint8_t p[64 ];
87
87
p[0 ] = id;
88
88
memcpy (&p[1 ], data, len);
89
- USBD_Send (pluggedEndpoint, p, len+1 );
89
+ return USBD_Send (pluggedEndpoint, p, len+1 );
90
90
}
91
91
92
92
bool HID_::setup (USBSetup& setup)
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ class HID_ : public PluggableUSBModule
88
88
public:
89
89
HID_ (void );
90
90
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);
92
92
void AppendDescriptor (HIDSubDescriptor* node);
93
93
94
94
protected:
You can’t perform that action at this time.
0 commit comments