diff --git a/cmd/mp707/main.go b/cmd/mp707/main.go index b02e2f7..99ce04e 100644 --- a/cmd/mp707/main.go +++ b/cmd/mp707/main.go @@ -37,6 +37,8 @@ func main() { } for _, device := range devices { + defer device.Close() + if *deviceId > 0 { if device.GetId() != uint8(*deviceId) { log.Println("skipping device", device.GetId())