Fix wrong status code displaying.
Uncomment GPIO lines in the signaler.
This commit is contained in:
parent
0c989c06d0
commit
b6b684af25
2 changed files with 3 additions and 6 deletions
|
@ -20,10 +20,10 @@ defmodule MorseSignaler do
|
|||
"""
|
||||
|
||||
def signal(server_pid) do
|
||||
# {:ok, gpio} = GPIO.open(relay_pin(), :output)
|
||||
# GPIO.write(gpio, @off)
|
||||
{:ok, gpio} = GPIO.open(relay_pin(), :output)
|
||||
GPIO.write(gpio, @off)
|
||||
Process.sleep(@sleep_start)
|
||||
# signal_sentence(gpio, String.graphemes(secret_code()))
|
||||
signal_sentence(gpio, String.graphemes(secret_code()))
|
||||
|
||||
GenServer.cast(server_pid, :done)
|
||||
:ok
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue