mirror of
https://github.com/XIVN1987/DAPLink.git
synced 2026-09-26 22:16:11 +00:00
解决在电脑配置 USB 接口之前接收到串口数据,导致后续无法接收问题
This commit is contained in:
@@ -258,6 +258,8 @@ void USBD_Reset(void)
|
|||||||
SetDeviceAddress(0);
|
SetDeviceAddress(0);
|
||||||
|
|
||||||
bDeviceState = ATTACHED;
|
bDeviceState = ATTACHED;
|
||||||
|
|
||||||
|
Vcom.in_ready = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*********************************************************************
|
/*********************************************************************
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
#include "vcom_serial.h"
|
#include "vcom_serial.h"
|
||||||
|
|
||||||
|
|
||||||
volatile VCOM Vcom = {.in_ready = 1};
|
volatile VCOM Vcom;
|
||||||
|
|
||||||
VCOM_LINE_CODING LineCfg = {115200, 0, 0, 8}; // Baud rate, stop bits, parity bits, data bits
|
VCOM_LINE_CODING LineCfg = {115200, 0, 0, 8}; // Baud rate, stop bits, parity bits, data bits
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user