Fix: 修复在线版python板卡载入异常
This commit is contained in:
@@ -19,9 +19,9 @@ const { BOARD } = Config;
|
||||
|
||||
let Device = SerialPort;
|
||||
|
||||
if (BOARD.web.com === 'usb') {
|
||||
if (BOARD?.web?.com === 'usb') {
|
||||
Device = USB;
|
||||
} else if (BOARD.web.com === 'hid') {
|
||||
} else if (BOARD?.web?.com === 'hid') {
|
||||
Device = HID;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user