Skip to content

Commit

Permalink
Fix clang errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mikee47 committed Jun 10, 2024
1 parent 2e3e524 commit 52424de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion samples/Basic_Host/app/xbox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ bool Xbox::control(tusb_request_recipient_t recipient, uint16_t value, uint16_t
const tusb_control_request_t request = {
.bmRequestType_bit =
{
.recipient = recipient,
.recipient = uint8_t(recipient),
.type = TUSB_REQ_TYPE_VENDOR,
.direction = TUSB_DIR_IN,
},
Expand Down
2 changes: 2 additions & 0 deletions src/USB/Descriptors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ const char* getDescTypeName(uint8_t type)
return "VENDOR";
case TUSB_REQ_TYPE_INVALID:
return "RESERVED";
default:
return "?";
}
}

Expand Down

0 comments on commit 52424de

Please sign in to comment.