Skip to content

Commit 14d45b5

Browse files
committed
correct host cdc enum
1 parent 05c119c commit 14d45b5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/class/cdc/cdc_host.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ static void process_cdc_config(tuh_xfer_t* xfer)
522522
#ifdef CFG_TUH_CDC_LINE_CODING_ON_ENUM
523523
{
524524
cdc_line_coding_t line_coding = CFG_TUH_CDC_LINE_CODING_ON_ENUM;
525-
TU_ASSERT( tuh_cdc_set_line_coding(idx, &line_coding, process_cdc_config, 0), );
525+
TU_ASSERT( tuh_cdc_set_line_coding(idx, &line_coding, process_cdc_config, CONFIG_COMPLETE), );
526526
break;
527527
}
528528
#endif

src/host/usbh.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,8 @@ bool tuh_init(uint8_t controller_id)
330330
TU_LOG_INT(USBH_DEBUG, sizeof(hcd_event_t));
331331
TU_LOG_INT(USBH_DEBUG, sizeof(_ctrl_xfer));
332332
TU_LOG_INT(USBH_DEBUG, sizeof(tuh_xfer_t));
333+
TU_LOG_INT(USBH_DEBUG, sizeof(tu_fifo_t));
334+
TU_LOG_INT(USBH_DEBUG, sizeof(tu_edpt_stream_t));
333335

334336
// Event queue
335337
_usbh_q = osal_queue_create( &_usbh_qdef );
@@ -1275,7 +1277,7 @@ static void process_enumeration(tuh_xfer_t* xfer)
12751277
break;
12761278
}
12771279
#endif
1278-
__attribute__((fallthrough));
1280+
TU_ATTR_FALLTHROUGH;
12791281
#endif
12801282

12811283
case ENUM_SET_ADDR:

0 commit comments

Comments
 (0)