diff options
| author | hathach <[email protected]> | 2018-04-12 13:14:59 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-04-12 13:14:59 +0700 |
| commit | 08a24ee2246dee6701d1bf074e3f307215379a91 (patch) | |
| tree | e80b8c3d0181abdbe94e423bb210e14a11d4ea48 /tinyusb/device | |
| parent | e1272159d8b32e2f5478b35fa0e727cfc5c417e3 (diff) | |
refactor nrf5x mcu macro
Diffstat (limited to 'tinyusb/device')
| -rw-r--r-- | tinyusb/device/usbd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tinyusb/device/usbd.c b/tinyusb/device/usbd.c index a1886b9b4..c11d1fe42 100644 --- a/tinyusb/device/usbd.c +++ b/tinyusb/device/usbd.c @@ -344,7 +344,7 @@ static tusb_error_t proc_control_request_st(uint8_t rhport, tusb_control_request dcd_set_address(rhport, (uint8_t) p_request->wValue);
usbd_devices[rhport].state = TUSB_DEVICE_STATE_ADDRESSED;
- #ifndef NRF52840_XXAA // nrf52 auto handle set address, we must not return status
+ #if CFG_TUSB_MCU != OPT_MCU_NRF5X // nrf5x auto handle set address, we must not return status
dcd_control_status(rhport, p_request->bmRequestType_bit.direction);
#endif
}
|
