hink / go-blink1

Thingm Blink(1) interface library for Go
20 stars 9 forks source link

Close and re-open closed devices #2

Closed freb closed 8 years ago

freb commented 8 years ago

When devices are closed they are not removed from openDevices which means they cannot be re-opened. This can be fixed by adding the following here at https://github.com/hink/go-blink1/blob/master/blink1.go#L59:

delete(openDevices, b.Device.Device)