1
0
mirror of https://github.com/kidoman/embd synced 2024-05-29 07:08:04 +02:00
This commit is contained in:
Wu Jiang 2017-05-08 01:30:54 +00:00 committed by GitHub
commit aee34f1a02

View File

@ -48,6 +48,8 @@ func (p *digitalPin) init() error {
if err = p.export(); err != nil {
return err
}
// give rpi some time to link digital pin property
time.Sleep(100 * time.Millisecond)
if p.dir, err = p.directionFile(); err != nil {
return err
}