Skip to content

Commit

Permalink
Fix config symlink error #1
Browse files Browse the repository at this point in the history
fixes #1
  • Loading branch information
Lucaber committed Jan 23, 2024
1 parent 93c959c commit bb6641d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ daemon: build upload cleanup-remote daemon-remote

.PHONY: build
build:
go build -ldflags "-X 'github.com/lucaber/deckjoy/pkg/config.Version=0.0.1'" -o deckjoy main.go
go build -ldflags "-X 'github.com/lucaber/deckjoy/pkg/config.Version=0.0.2'" -o deckjoy main.go

.PHONY: zip
zip: build
Expand Down
3 changes: 3 additions & 0 deletions pkg/setup/usb.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@ func (d *Deck) SetupHidDevice(name string, reportDesc []byte, userPermissions bo
return "", err
}

// disable first, before adding new function to the config
_ = d.gadget.Disable()

err = d.conf.AddFunction(hid.FunctionGeneric)
if err != nil {
return "", err
Expand Down

0 comments on commit bb6641d

Please sign in to comment.