edison: ensure that we initialize tristate if arduino breakout board
Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
parent
8a50bb24e5
commit
fe23d8ef90
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue