Fix wrong status code displaying.

Uncomment GPIO lines in the signaler.
This commit is contained in:
Pim Kunis 2019-07-25 00:00:13 +02:00
parent 0c989c06d0
commit b6b684af25
2 changed files with 3 additions and 6 deletions

View file

@ -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

View file

@ -33,9 +33,6 @@
responseP.innerHTML = "Starting...";
xhttp.open("GET", "/start", true);
xhttp.send();
setTimeout(function() {
responseP.innerHTML = "Started.";
}, 3000);
}
function givehint() {