reduce throttle for gpio sequencer

This commit is contained in:
Connor Rigby 2017-11-29 21:37:05 -08:00
parent a1f4896fed
commit 2e32357394

View file

@ -63,7 +63,7 @@ defmodule Farmbot.Target.GPIO.AleHandler do
new_state = %{state | pins: %{state.pins | pin => %{pin_state | state: :rising}}}
{:noreply, [], new_state}
else
timer = Process.send_after(self(), {:gpio_timer, pin}, 5000)
timer = Process.send_after(self(), {:gpio_timer, pin}, 1500)
new_state = %{state | pins: %{state.pins | pin => %{pin_state | timer: timer, state: :rising}}}
{:noreply, [{:pin_trigger, pin}], new_state}
end