edison: ensure that we initialize tristate if arduino breakout board

Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
deadprogram 2017-04-19 17:57:24 +02:00
parent 8a50bb24e5
commit fe23d8ef90
1 changed files with 4 additions and 0 deletions

View File

@ -228,6 +228,10 @@ func (e *Adaptor) exportTristatePin() (err error) {
// arduinoSetup does needed setup for the Arduino compatible breakout board
func (e *Adaptor) arduinoSetup() (err error) {
if err = e.exportTristatePin(); err != nil {
return err
}
if err = e.tristate.Direction(sysfs.OUT); err != nil {
return err
}