davecheney / gpio

GPIO for Go
BSD 2-Clause "Simplified" License
228 stars 52 forks source link

OpenPin crashes if the pin is already exported #4

Closed tylerstillwater closed 11 years ago

tylerstillwater commented 11 years ago

Check to see if the pin is already exported before attempting to export.

davecheney commented 11 years ago

weird, i thought I fixed that.

tylerstillwater commented 11 years ago

Was that a recent fix? It is possible I haven't pulled it. I'll double check.

Sent from my iPhone

On Aug 2, 2013, at 9:42 AM, Dave Cheney notifications@github.com wrote:

weird, i thought I fixed that.

— Reply to this email directly or view it on GitHub.

tylerstillwater commented 11 years ago

I have the latest code and it is crashing if export is already done. This is a legit bug.

davecheney commented 11 years ago

Cool. Thanks for checking. At the same time, please check too see if a pin which cannot be exported gives a sensible error. Some GPIO pins like GPIO 14,15, and 16 my be in use by the operating system. http://elinux.org/RPi_BCM2835_GPIOs.

On Sat, Aug 3, 2013 at 3:03 AM, Tyler notifications@github.com wrote:

I have the latest code and it is crashing if export is already done. This is a legit bug.

— Reply to this email directly or view it on GitHubhttps://github.com/davecheney/gpio/issues/4#issuecomment-22019400 .