Skip to content

Commit

Permalink
add sleep to wait for device module bind
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucaber committed Aug 17, 2024
1 parent 0a7abae commit 57a3b08
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/setup/usb.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"github.com/pkg/errors"
"os"
"path"
"time"
)

type AfterEnableHookFunc func() error
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 57a3b08

Please sign in to comment.