:none pullup mode

qa/estop_fix
Rick Carlino 2020-04-08 18:31:44 -05:00
parent 5b5101313b
commit 298334aac5
2 changed files with 3 additions and 2 deletions

View File

@ -1 +1 @@
9.2.2-rc3
9.2.2-rc4

View File

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