Auto refresh ports when USB hotplugged
This commit is contained in:
parent
a72b57e710
commit
7c37e2790b
|
@ -706,7 +706,6 @@ window.onload = function () {
|
|||
refreshBasetunes();
|
||||
refreshSerialPorts();
|
||||
checkForUpdates();
|
||||
|
||||
};
|
||||
|
||||
$(function(){
|
||||
|
@ -767,4 +766,8 @@ $(function(){
|
|||
}
|
||||
});
|
||||
|
||||
//Detect devices hotplug
|
||||
usb.usb.on('attach', refreshSerialPorts);
|
||||
usb.usb.on('detach', refreshSerialPorts);
|
||||
|
||||
});
|
Loading…
Reference in New Issue