mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
Fixed "warning: no return statement in function returning non-void"
This commit is contained in:
parent
7e6a1de9dc
commit
3d5b46d055
3 changed files with 9 additions and 3 deletions
2
cdcacm.h
2
cdcacm.h
|
@ -204,7 +204,7 @@ public:
|
||||||
uint8_t Poll();
|
uint8_t Poll();
|
||||||
|
|
||||||
bool available(void) {
|
bool available(void) {
|
||||||
|
return false;
|
||||||
};
|
};
|
||||||
|
|
||||||
virtual uint8_t GetAddress() {
|
virtual uint8_t GetAddress() {
|
||||||
|
|
|
@ -80,9 +80,11 @@ class FTDIAsyncOper {
|
||||||
public:
|
public:
|
||||||
|
|
||||||
virtual uint8_t OnInit(FTDI *pftdi) {
|
virtual uint8_t OnInit(FTDI *pftdi) {
|
||||||
|
return 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
virtual uint8_t OnRelease(FTDI *pftdi) {
|
virtual uint8_t OnRelease(FTDI *pftdi) {
|
||||||
|
return 0;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
8
hid.h
8
hid.h
|
@ -156,7 +156,9 @@ protected:
|
||||||
void PrintEndpointDescriptor(const USB_ENDPOINT_DESCRIPTOR* ep_ptr);
|
void PrintEndpointDescriptor(const USB_ENDPOINT_DESCRIPTOR* ep_ptr);
|
||||||
void PrintHidDescriptor(const USB_HID_DESCRIPTOR *pDesc);
|
void PrintHidDescriptor(const USB_HID_DESCRIPTOR *pDesc);
|
||||||
|
|
||||||
virtual HIDReportParser* GetReportParser(uint8_t id) {};
|
virtual HIDReportParser* GetReportParser(uint8_t id) {
|
||||||
|
return NULL;
|
||||||
|
};
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
@ -167,7 +169,9 @@ public:
|
||||||
return pUsb;
|
return pUsb;
|
||||||
};
|
};
|
||||||
|
|
||||||
virtual bool SetReportParser(uint8_t id, HIDReportParser *prs) {};
|
virtual bool SetReportParser(uint8_t id, HIDReportParser *prs) {
|
||||||
|
return false;
|
||||||
|
};
|
||||||
|
|
||||||
uint8_t SetProtocol(uint8_t iface, uint8_t protocol);
|
uint8_t SetProtocol(uint8_t iface, uint8_t protocol);
|
||||||
uint8_t GetProtocol(uint8_t iface, uint8_t* dataptr);
|
uint8_t GetProtocol(uint8_t iface, uint8_t* dataptr);
|
||||||
|
|
Loading…
Reference in a new issue