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:
parent
a6e3902eb0
commit
10992981e3
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user