:pullup pullup mode

qa/estop_fix
Rick Carlino 2020-04-08 18:53:23 -05:00
parent 298334aac5
commit ebc371c4d0
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
9.2.2-rc4
9.2.2-rc5

View File

@ -25,7 +25,7 @@ defmodule FarmbotOS.Platform.Target.PinBindingWorker.CircuitsGPIOHandler do
:ok = GPIO.set_interrupts(pin, :rising)
# this has been checked on v1.3 and v1.5 hardware and it seems to be fine.
# but that was with `:pulldown`.
:ok = GPIO.set_pull_mode(pin, :none)
:ok = GPIO.set_pull_mode(pin, :pullup)
result = %{pin_number: pin_number, pin: pin, fun: fun, debounce: nil}
str = "*** " <> inspect(result)
FarmbotCore.Logger.info(1, str)