summaryrefslogtreecommitdiff
path: root/src/class/bth/bth_device.c
diff options
context:
space:
mode:
authorIngHK <[email protected]>2023-12-08 16:44:58 +0100
committerIngHK <[email protected]>2023-12-08 16:44:58 +0100
commit4d88f146e3a79ca4e7c7bbba2cdd6b8f3b07537a (patch)
treed3e7eed808967619fd880e4425256f8e1cc6de6e /src/class/bth/bth_device.c
parentb8881a3a141530a1d383d8869881e773b8a07d80 (diff)
parent338ff2daba63fc60835934efc374c818f7c5980c (diff)
Merge remote-tracking branch 'remotes/hathach/master' into HostLogsFixes
Diffstat (limited to 'src/class/bth/bth_device.c')
-rwxr-xr-xsrc/class/bth/bth_device.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/class/bth/bth_device.c b/src/class/bth/bth_device.c
index c5c74d26a..f145e2ead 100755
--- a/src/class/bth/bth_device.c
+++ b/src/class/bth/bth_device.c
@@ -204,7 +204,9 @@ bool btd_control_xfer_cb(uint8_t rhport, uint8_t stage, tusb_control_request_t c
request->bmRequestType_bit.recipient == TUSB_REQ_RCPT_DEVICE)
{
// HCI command packet addressing for single function Primary Controllers
- TU_VERIFY(request->bRequest == 0 && request->wValue == 0 && request->wIndex == 0);
+ // also compatible with historical mode if enabled
+ TU_VERIFY((request->bRequest == 0 && request->wValue == 0 && request->wIndex == 0) ||
+ (CFG_TUD_BTH_HISTORICAL_COMPATIBLE && request->bRequest == 0xe0));
}
else if (request->bmRequestType_bit.recipient == TUSB_REQ_RCPT_INTERFACE)
{