commit 2021-12-16]13:30:04
This commit is contained in:
parent
37705d6fe5
commit
ce91a11c5a
4
cli.go
4
cli.go
@ -71,7 +71,7 @@ func Run() error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for _, e := range ifaces {
|
for _, e := range ifaces {
|
||||||
_managerObj.onAdded(e)
|
go _managerObj.onAdded(e)
|
||||||
}
|
}
|
||||||
|
|
||||||
go puserial.WatchNewDevice(ctx, ch_discover)
|
go puserial.WatchNewDevice(ctx, ch_discover)
|
||||||
@ -84,7 +84,7 @@ func Run() error {
|
|||||||
}
|
}
|
||||||
switch e.Event() {
|
switch e.Event() {
|
||||||
case notify.Create:
|
case notify.Create:
|
||||||
_managerObj.onAdded(e.Path())
|
go _managerObj.onAdded(e.Path())
|
||||||
// case notify.Remove:
|
// case notify.Remove:
|
||||||
// log.Println("USB Disconnected!!")
|
// log.Println("USB Disconnected!!")
|
||||||
// _managerObj.onAdded(e.Path())
|
// _managerObj.onAdded(e.Path())
|
||||||
|
Loading…
Reference in New Issue
Block a user