1
0
mirror of https://github.com/kidoman/embd synced 2024-12-22 12:50:19 +01:00

gpio: remove edge file handling from digital pin

to be handled in future
This commit is contained in:
Kunal Powar 2014-04-05 01:30:04 +05:30
parent a6e3902eb0
commit 10992981e3

View File

@ -18,7 +18,6 @@ type digitalPin struct {
dir *os.File
val *os.File
activeLow *os.File
edge *os.File
initialized bool
}
@ -173,9 +172,6 @@ func (p *digitalPin) Close() error {
if err := p.activeLow.Close(); err != nil {
return err
}
if err := p.edge.Close(); err != nil {
return err
}
if err := p.unexport(); err != nil {
return err
}