Fix: 修复平板下烧录按钮可见以及提示信息显示异常
This commit is contained in:
@@ -250,7 +250,7 @@ BU.burnWithEsptool = async (binFile, erase) => {
|
||||
}
|
||||
}
|
||||
const port = Serial.getPort(portName);
|
||||
if (port instanceof window.HIDDevice || port instanceof window.USBDevice) {
|
||||
if (['HIDDevice', 'USBDevice'].includes(port.constructor.name)) {
|
||||
layer.msg(Msg.Lang['burn.notSupport'], { time: 1000 });
|
||||
return;
|
||||
}
|
||||
@@ -370,7 +370,7 @@ BU.burnWithAdafruitEsptool = async (binFile, erase) => {
|
||||
}
|
||||
}
|
||||
const port = Serial.getPort(portName);
|
||||
if (port instanceof window.HIDDevice || port instanceof window.USBDevice) {
|
||||
if (['HIDDevice', 'USBDevice'].includes(port.constructor.name)) {
|
||||
layer.msg(Msg.Lang['burn.notSupport'], { time: 1000 });
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user