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
|
||||
|
|
|
@ -33,9 +33,6 @@
|
|||
responseP.innerHTML = "Starting...";
|
||||
xhttp.open("GET", "/start", true);
|
||||
xhttp.send();
|
||||
setTimeout(function() {
|
||||
responseP.innerHTML = "Started.";
|
||||
}, 3000);
|
||||
}
|
||||
|
||||
function givehint() {
|
||||
|
|
Loading…
Reference in a new issue