Skip to content

Commit

Permalink
fixed double lookup of devices
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Bensmann committed Mar 27, 2023
1 parent 6df9204 commit 0d472d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func main() {

// if no devices are specified, use the detected ones
if len(config.Devices) == 0 {
for _, device := range findKeyboardDevices() {
for _, device := range detectedKeyboardDevices {
config.Devices = append(config.Devices, device.Fn)
}
if len(config.Devices) == 0 {
Expand Down

0 comments on commit 0d472d4

Please sign in to comment.