We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 130e704 commit f0c6bcbCopy full SHA for f0c6bcb
src/js/port_handler.js
@@ -122,8 +122,9 @@ PortHandler.removedSerialDevice = function (device) {
122
PortHandler.addedUsbDevice = function (device) {
123
this.updateDeviceList("usb").then(() => {
124
const selectedPort = this.selectActivePort(device);
125
- if (selectedPort === device?.path) {
126
- // Send event when the port handler auto selects a new USB device
+ console.log(`${this.logHead} Added USB device:`, device, selectedPort);
+ if (selectedPort === device.path) {
127
+ // Emit an event with the proper type for backward compatibility
128
EventBus.$emit("port-handler:auto-select-usb-device", selectedPort);
129
}
130
});
0 commit comments