Fix: 修复在线版python板卡载入异常

This commit is contained in:
王立帮
2024-12-22 10:03:27 +08:00
parent 6aa25550e7
commit c2edffa8a3

View File

@@ -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;
}