From 298334aac559d153645839971c644d9dc422e0fc Mon Sep 17 00:00:00 2001 From: Rick Carlino Date: Wed, 8 Apr 2020 18:31:44 -0500 Subject: [PATCH] :none pullup mode --- VERSION | 2 +- farmbot_os/platform/target/gpio/circuits_gpio_handler.ex | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 029dcbba..69fb4cbf 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -9.2.2-rc3 +9.2.2-rc4 diff --git a/farmbot_os/platform/target/gpio/circuits_gpio_handler.ex b/farmbot_os/platform/target/gpio/circuits_gpio_handler.ex index 66ca2fd2..aeaea7ae 100644 --- a/farmbot_os/platform/target/gpio/circuits_gpio_handler.ex +++ b/farmbot_os/platform/target/gpio/circuits_gpio_handler.ex @@ -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)