mirror of
https://github.com/kidoman/embd
synced 2025-07-01 19:18:08 +02:00
Close unregistred digitalpins
This commit is contained in:
parent
bfcd1345fe
commit
1a49faafdd
@ -7,6 +7,7 @@ package generic
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"log"
|
||||
"os"
|
||||
"path"
|
||||
"strconv"
|
||||
@ -233,7 +234,7 @@ func (p *digitalPin) Close() error {
|
||||
}
|
||||
|
||||
if err := p.drv.Unregister(p.id); err != nil {
|
||||
return err
|
||||
log.Println("Driver unregister error:", err.Error())
|
||||
}
|
||||
|
||||
if !p.initialized {
|
||||
|
Loading…
x
Reference in New Issue
Block a user