Skip to content

Commit

Permalink
Merge pull request #342 from adafruit/master
Browse files Browse the repository at this point in the history
fix missing return in function requiring return value!
  • Loading branch information
NicoHood authored Jan 11, 2022
2 parents 30685e3 + ea0c514 commit 1eb0ce6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/port/samd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

#if !defined(ARDUINO_API_VERSION)
int USB_SendControl(void* b, unsigned char c) {
USBDevice.sendControl(b, c);
return USBDevice.sendControl(b, c);
}

int USB_SendControl(uint8_t a, const void* b, uint8_t c) {
USBDevice.sendControl(b, c);
return USBDevice.sendControl(b, c);
}
#endif

Expand Down

0 comments on commit 1eb0ce6

Please sign in to comment.