mirror of
https://github.com/kidoman/embd
synced 2025-01-08 20:54:27 +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
|
dir *os.File
|
||||||
val *os.File
|
val *os.File
|
||||||
activeLow *os.File
|
activeLow *os.File
|
||||||
edge *os.File
|
|
||||||
|
|
||||||
initialized bool
|
initialized bool
|
||||||
}
|
}
|
||||||
@ -173,9 +172,6 @@ func (p *digitalPin) Close() error {
|
|||||||
if err := p.activeLow.Close(); err != nil {
|
if err := p.activeLow.Close(); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if err := p.edge.Close(); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if err := p.unexport(); err != nil {
|
if err := p.unexport(); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user