From 57a3b080fc597a3e04fe08b22a6f6e1a66c5568e Mon Sep 17 00:00:00 2001 From: Luca Berneking Date: Sat, 17 Aug 2024 14:28:22 +0200 Subject: [PATCH] add sleep to wait for device module bind --- pkg/setup/usb.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/setup/usb.go b/pkg/setup/usb.go index 846114e..b0fed50 100644 --- a/pkg/setup/usb.go +++ b/pkg/setup/usb.go @@ -8,6 +8,7 @@ import ( "github.com/pkg/errors" "os" "path" + "time" ) type AfterEnableHookFunc func() error @@ -42,6 +43,8 @@ func (d *Deck) SetupDeviceModules() error { if err != nil { return errors.Wrap(err, "failed to bind device") } + // wait for module bind + time.Sleep(time.Second) return nil }