Skip to content

Commit cdc36a4

Browse files
committed
correct command for linux
1 parent 44d225c commit cdc36a4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

firmware/app/usb2uartjtag/usbd_ftdi.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,10 @@ static int ftdi_vendor_request_handler(struct usb_setup_packet *pSetup,uint8_t *
141141
{
142142
uint8_t baudrate_high = (pSetup->wIndex >> 8);
143143
ftdi_set_baudrate(pSetup->wValue|(baudrate_high<<16),&actual_baudrate);
144+
if(actual_baudrate != 1200)
145+
{
146+
usbd_ftdi_set_line_coding(actual_baudrate, 8, 0, 0);
147+
}
144148
break;
145149
}
146150
case SIO_SET_DATA_REQUEST:

0 commit comments

Comments
 (0)