Skip to content

Commit

Permalink
Add :none to typespec for interrupt direction
Browse files Browse the repository at this point in the history
Using `:none` appears to be the preferred means of unsetting the
interrupt callback for a pin, but using it and running `mix dialyzer` on
a project results in the following error:

| The call 'Elixir.ElixirALE.GPIO':set_int(interrupt_pid@1::any(),'none')
| breaks the contract (pid(),int_direction()) -> 'ok' | {'error',term()}
  • Loading branch information
tmecklem authored and fhunleth committed Oct 23, 2017
1 parent 1ee98a5 commit dc10d7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/elixir_ale/gpio.ex
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ defmodule ElixirALE.GPIO do
end

@type pin_direction :: :input | :output
@type int_direction :: :rising | :falling | :both
@type int_direction :: :rising | :falling | :both | :none

# Public API
@doc """
Expand Down

0 comments on commit dc10d7b

Please sign in to comment.