Skip to content

Commit

Permalink
removed redundant set p_cdc->line_coding.bit_rate
Browse files Browse the repository at this point in the history
  • Loading branch information
heikokue committed Feb 1, 2024
1 parent fce8041 commit 167fc0a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/class/cdc/cdc_host.c
Original file line number Diff line number Diff line change
Expand Up @@ -1408,7 +1408,6 @@ static void ch34x_set_line_coding_stage1_complete(tuh_xfer_t* xfer) {

if (xfer->result == XFER_RESULT_SUCCESS) {
// stage 1 success, continue to stage 2
p_cdc->line_coding.bit_rate = p_cdc->requested_line_coding.bit_rate;
TU_ASSERT(ch34x_set_data_format(p_cdc, p_cdc->requested_line_coding.stop_bits, p_cdc->requested_line_coding.parity,
p_cdc->requested_line_coding.data_bits, p_cdc->requested_complete_cb, xfer->user_data), );
} else {
Expand Down

0 comments on commit 167fc0a

Please sign in to comment.