This commit is contained in:
Wu Jiang 2017-05-08 01:30:54 +00:00 committed by GitHub
commit aee34f1a02
1 changed files with 2 additions and 0 deletions

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
}