diff options
| author | hathach <[email protected]> | 2018-12-12 14:43:45 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-12-12 14:43:45 +0700 |
| commit | bb544a09518f4f2210482e62fb050b6cea641c97 (patch) | |
| tree | 403f0c70ae82b37bce3b43a7b739fa2feba0d75b /src | |
| parent | c1c501e0c2f3ad2c910b11bb358396c2e57ec624 (diff) | |
minor update
Diffstat (limited to 'src')
| -rw-r--r-- | src/class/cdc/cdc_device.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/class/cdc/cdc_device.c b/src/class/cdc/cdc_device.c index 7d9e196aa..7ec7a1eb2 100644 --- a/src/class/cdc/cdc_device.c +++ b/src/class/cdc/cdc_device.c @@ -346,9 +346,10 @@ bool cdcd_control_request(uint8_t rhport, tusb_control_request_t const * request // This signal corresponds to V.24 signal 105 and RS-232 signal RTS (Request to Send)
p_cdc->line_state = (uint8_t) request->wValue;
+ usbd_control_status(rhport, request);
+
// Invoke callback
if ( tud_cdc_line_state_cb) tud_cdc_line_state_cb(itf, BIT_TEST_(request->wValue, 0), BIT_TEST_(request->wValue, 1));
- usbd_control_status(rhport, request);
break;
default: return false; // stall unsupported request
|
