diff options
| author | hathach <[email protected]> | 2022-12-21 11:46:58 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2022-12-21 11:46:58 +0700 |
| commit | cb2af4c0bc096e57c3486945eda43dbc26b3829a (patch) | |
| tree | 83c61f6e626b46b18395c27e216a8b413f622ac3 /src/class/cdc | |
| parent | d1ea3844f70a5add6e073aa8fa6b562413db4929 (diff) | |
minor debug log
Diffstat (limited to 'src/class/cdc')
| -rw-r--r-- | src/class/cdc/cdc_host.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/class/cdc/cdc_host.c b/src/class/cdc/cdc_host.c index 5aec41cbc..83c623884 100644 --- a/src/class/cdc/cdc_host.c +++ b/src/class/cdc/cdc_host.c @@ -33,6 +33,12 @@ #include "cdc_host.h" + +// Debug level, TUSB_CFG_DEBUG must be at least this level for debug message +#define CDCH_DEBUG 2 + +#define TU_LOG_CDCH(...) TU_LOG(CDCH_DEBUG, __VA_ARGS__) + //--------------------------------------------------------------------+ // MACRO CONSTANT TYPEDEF //--------------------------------------------------------------------+ @@ -348,6 +354,8 @@ bool tuh_cdc_set_control_line_state(uint8_t idx, uint16_t line_state, tuh_xfer_c cdch_interface_t* p_cdc = get_itf(idx); TU_VERIFY(p_cdc && p_cdc->acm_capability.support_line_request); + TU_LOG_CDCH("CDC Set Control Line State\r\n"); + tusb_control_request_t const request = { .bmRequestType_bit = |
